Ensure invalid blocks do not go into the fork choice

Description

Done when:

  • Update the in Memory data structure - Block meta data class to include a block status.

  • Create tests as well - covering a variety of invalid blocks & use cases.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 14:02:42.761 [grpc-default-executor-6] WARN c.rchain.casper.MultiParentCasper$ - CASPER: Recording invalid block e059ef7494... for InvalidTransaction. 14:02:42.769 [grpc-default-executor-6] INFO c.rchain.casper.MultiParentCasper$ - CASPER: New fork-choice tip is block e059ef7494.... 14:05:43.432 [grpc-default-executor-0] INFO c.rchain.casper.util.comm.CommUtil$ - CASPER: Received Block #22 (ce5a090870...) -- Sender ID 47da64765e... -- M Parent Hash 3ff8794976... -- Contents 76b3d85a79.... @{"Philosopher 2 Utensils: "} @{"knife"} @{"Philosopher 1 Utensils: "} @{", "} @{"knife"} @{"spoon"} @{" "} @{", "} @{"spoon"} @{" "} 14:05:44.120 [grpc-default-executor-0] INFO c.rchain.casper.util.comm.CommUtil$ - CASPER: Beginning send of Block #22 (ce5a090870...) -- Sender ID 47da64765e... -- M Parent Hash 3ff8794976... -- Contents 76b3d85a79... to peers... 14:05:44.122 [repl-io-55] INFO c.rchain.casper.util.comm.CommUtil$ - CASPER: Sent ce5a090870... to peers 14:05:44.122 [repl-io-55] INFO c.rchain.casper.MultiParentCasper$ - CASPER: Added ce5a090870... 14:05:44.126 [repl-io-55] INFO c.rchain.casper.MultiParentCasper$ - CASPER: New fork-choice tip is block e059ef7494....

Status

Assignee

Unassigned

Reporter

Kent Shikama

Components

Story Points

8

Epic Link

Labels

Sprint

None

Priority

High