From 9dc8e26c646544a7f9f4dcf05728fe0ccd109415 Mon Sep 17 00:00:00 2001 From: "Sam H. Smith" Date: Mon, 29 May 2023 13:52:30 +0200 Subject: [PATCH] [fix] #3075: Panic on invalid tx in genesis. --- core/src/sumeragi/main_loop.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/sumeragi/main_loop.rs b/core/src/sumeragi/main_loop.rs index 930e3036a5d..846f2bfd72f 100644 --- a/core/src/sumeragi/main_loop.rs +++ b/core/src/sumeragi/main_loop.rs @@ -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.");