Fix the position of coinbase tx (#7217)
This commit is contained in:
parent
7b0dedd3a2
commit
f1ee502ddf
|
|
@ -41,7 +41,7 @@ impl FakeChainHelper for Arc<Block> {
|
||||||
_ => panic!("block must have a coinbase height to create a child"),
|
_ => 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::make_mut(&mut child.header).previous_block_hash = parent_hash;
|
||||||
|
|
||||||
Arc::new(child)
|
Arc::new(child)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue