blockchain/Block: moved producer tx at last position of blocks' txs vec

This commit is contained in:
aggstam
2023-09-14 19:54:16 +03:00
parent dba13ebef6
commit eca2c7e175
8 changed files with 58 additions and 58 deletions

View File

@@ -82,14 +82,7 @@ impl Harness {
let header =
Header::new(previous_hash, previous.header.epoch, id, timestamp, previous.header.root);
BlockInfo::new(
header,
vec![],
previous.signature,
previous.proposal.clone(),
previous.eta,
vec![slot],
)
BlockInfo::new(header, previous.txs.clone(), previous.signature, previous.eta, vec![slot])
}
fn add_blocks(&self, blocks: &[BlockInfo]) -> Result<()> {