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 authored and mversic committed Oct 17, 2023
1 parent da0740d commit cf3eb60
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 cf3eb60

Please sign in to comment.