From d54da4915fc4152ef8bc32b51c400eaf43a4c3e9 Mon Sep 17 00:00:00 2001 From: Hansie Odendaal Date: Fri, 13 Dec 2024 07:26:58 +0200 Subject: [PATCH] adjust unit test block weights --- base_layer/core/tests/tests/block_validation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_layer/core/tests/tests/block_validation.rs b/base_layer/core/tests/tests/block_validation.rs index c87d7c819e..aa7246fa22 100644 --- a/base_layer/core/tests/tests/block_validation.rs +++ b/base_layer/core/tests/tests/block_validation.rs @@ -345,7 +345,7 @@ async fn test_orphan_validator() { let key_manager = create_memory_db_key_manager().unwrap(); let network = Network::Igor; let consensus_constants = ConsensusConstantsBuilder::new(network) - .with_max_block_transaction_weight(334) + .with_max_block_transaction_weight(335) .build(); let (genesis, outputs) = create_genesis_block_with_utxos(&[T, T, T], &consensus_constants, &key_manager).await; let network = Network::LocalNet; @@ -941,7 +941,7 @@ async fn test_block_sync_body_validator() { matches!( err, ValidationError::BlockTooLarge { actual_weight, max_weight } if - actual_weight == 467 && max_weight == 400 + actual_weight == 470 && max_weight == 400 ), "{}", err