Skip to content

Commit

Permalink
Use NU6 & V5 tx in new test
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Dec 3, 2024
1 parent 4d16805 commit af9001d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zebra-consensus/src/transaction/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ async fn skips_verification_of_block_transactions_in_mempool() {
.ok()
.expect("send should succeed");

let height = NetworkUpgrade::Canopy
let height = NetworkUpgrade::Nu6
.activation_height(&Network::Mainnet)
.expect("Canopy activation height is specified");
let fund_height = (height - 1).expect("fake source fund block height is too small");
Expand All @@ -730,13 +730,14 @@ async fn skips_verification_of_block_transactions_in_mempool() {
);

// Create a non-coinbase V4 tx with the last valid expiry height.
let tx = Transaction::V4 {
let tx = Transaction::V5 {
network_upgrade: NetworkUpgrade::Nu5,
inputs: vec![input],
outputs: vec![output],
lock_time: LockTime::min_lock_time_timestamp(),
expiry_height: height,
joinsplit_data: None,
sapling_shielded_data: None,
orchard_shielded_data: None,
};

let tx_hash = tx.hash();
Expand Down

0 comments on commit af9001d

Please sign in to comment.