blockchain/header: derive block version using sdk block_version fn

This commit is contained in:
skoupidi
2024-01-31 19:14:55 +02:00
parent 3355575721
commit ccc3a8e3a7
6 changed files with 43 additions and 43 deletions

View File

@@ -95,8 +95,7 @@ impl Harness {
timestamp.add(1);
// Generate header
let header =
Header::new(previous_hash, previous.header.epoch, id, timestamp, previous.header.nonce);
let header = Header::new(previous_hash, id, timestamp, previous.header.nonce);
// Generate the block
let mut block = BlockInfo::new_empty(header, vec![slot]);