From a9ef0c5daa7a8e05a7078f583446f2f3d84c0e96 Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Thu, 20 Oct 2022 15:30:43 +0200 Subject: [PATCH] fix tests --- base_layer/core/tests/helpers/block_malleability.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/base_layer/core/tests/helpers/block_malleability.rs b/base_layer/core/tests/helpers/block_malleability.rs index 13936438fd..310af7fead 100644 --- a/base_layer/core/tests/helpers/block_malleability.rs +++ b/base_layer/core/tests/helpers/block_malleability.rs @@ -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