Skip to content

Commit

Permalink
[fix] #3075: Panic on invalid tx in genesis.
Browse files Browse the repository at this point in the history
Signed-off-by: Sam H. Smith <[email protected]>
  • Loading branch information
SamHSmith committed May 29, 2023
1 parent 86893b5 commit bafcb9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/sumeragi/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ impl Sumeragi {
wsv: self.wsv.clone(),
}
.build();
assert!(
block.rejected_transactions.is_empty(),
"Genesis transaction set contains invalid transactions"
);

{
info!(block_partial_hash = %block.partial_hash(), "Publishing genesis block.");
Expand Down

0 comments on commit bafcb9a

Please sign in to comment.