Fix the position of coinbase tx (#7217)

This commit is contained in:
Marek 2023-07-15 18:24:51 +02:00 committed by GitHub
parent 7b0dedd3a2
commit f1ee502ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ impl FakeChainHelper for Arc<Block> {
_ => 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)