diff --git a/packages/consensus/src/validation/block.cairo b/packages/consensus/src/validation/block.cairo index 925feb39..20bb9b08 100644 --- a/packages/consensus/src/validation/block.cairo +++ b/packages/consensus/src/validation/block.cairo @@ -2,10 +2,10 @@ use crate::types::utxo_set::{UtxoSet, UtxoSetTrait}; use crate::types::transaction::{OutPoint, Transaction}; use crate::codec::{Encode, TransactionCodec}; +use crate::validation::coinbase::is_coinbase_txid_duplicated; use utils::{hash::Digest, merkle_tree::merkle_root, double_sha256::double_sha256_byte_array,}; use super::transaction::validate_transaction; use core::num::traits::zero::Zero; -use crate::validation::coinbase::is_coinbase_txid_duplicated; const MAX_BLOCK_WEIGHT_LEGACY: usize = 1_000_000; const MAX_BLOCK_WEIGHT: usize = 4_000_000; diff --git a/scripts/data/regenerate_tests.sh b/scripts/data/regenerate_tests.sh index bc9018fe..c9b23921 100755 --- a/scripts/data/regenerate_tests.sh +++ b/scripts/data/regenerate_tests.sh @@ -22,6 +22,7 @@ light_test_cases=( 32255 # First target adjustment (32256) 57042 # Block containing pizza tx (57043) 72575 # Difficulty adjustment + 91721 # Duplicate coinbase txid (91722) 116927 # Difficulty adjustment 150012 # Small Block (150013) 209999 # First halving block (210000) @@ -45,6 +46,7 @@ full_test_cases=( 32255 # First target adjustment (32256) 57042 # Block containing pizza tx (57043) 72575 # Difficulty adjustment + 91721 # Duplicate coinbase txid (91722) 116927 # Difficulty adjustment 150012 # Small Block (150013) 209999 # First halving block (210000)