From f1ee502ddf2bf8ffcdb60dbabdc91885f3d723c9 Mon Sep 17 00:00:00 2001 From: Marek Date: Sat, 15 Jul 2023 18:24:51 +0200 Subject: [PATCH] Fix the position of coinbase tx (#7217) --- zebra-state/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-state/src/tests.rs b/zebra-state/src/tests.rs index 1133542d..488ab422 100644 --- a/zebra-state/src/tests.rs +++ b/zebra-state/src/tests.rs @@ -41,7 +41,7 @@ impl FakeChainHelper for Arc { _ => panic!("block must have a coinbase height to create a child"), } - child.transactions.push(tx); + child.transactions.insert(0, tx); Arc::make_mut(&mut child.header).previous_block_hash = parent_hash; Arc::new(child)