Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Oct 20, 2022
1 parent b5ec9aa commit a9ef0c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions base_layer/core/tests/helpers/block_malleability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ fn check_block_changes_are_detected(field: MerkleMountainRangeField, block_mod_f

let (_, output) = blockchain.add_block(blocks.new_block("A1").child_of("GB").difficulty(1));

// we need to use input version V2 to include the "version" into the input hash
// and also the output version V2 to include the "sender_offset_public_key" into the output hash
let (txs, _) = schema_to_transaction(&[txn_schema!(
from: vec![output],
to: vec![50 * T],
input_version: TransactionInputVersion::V1,
output_version: TransactionOutputVersion::V1
input_version: TransactionInputVersion::V0,
output_version: TransactionOutputVersion::V0
)]);
blockchain.add_block(
blocks
Expand Down

0 comments on commit a9ef0c5

Please sign in to comment.