diff --git a/core/src/actor.rs b/core/src/actor.rs index 596b4992..828daef0 100644 --- a/core/src/actor.rs +++ b/core/src/actor.rs @@ -357,7 +357,7 @@ mod tests { let mut tx_handler = create_invalid_mock_tx_handler(actor); let prev_tx: Transaction = Transaction { - version: Version::TWO, + version: Version(3), lock_time: bitcoin::absolute::LockTime::Blocks(Height::ZERO), input: vec![], output: tx_handler.prevouts.clone(), @@ -390,7 +390,7 @@ mod tests { }]; let tx = Transaction { - version: Version::TWO, + version: Version(3), lock_time: bitcoin::absolute::LockTime::Blocks(Height::ZERO), input: vec![], output: vec![TxOut { diff --git a/core/src/builder/transaction.rs b/core/src/builder/transaction.rs index e4ea9484..15aee747 100644 --- a/core/src/builder/transaction.rs +++ b/core/src/builder/transaction.rs @@ -444,7 +444,7 @@ pub fn create_operator_takes_tx( pub fn create_btc_tx(tx_ins: Vec, tx_outs: Vec) -> bitcoin::Transaction { bitcoin::Transaction { - version: bitcoin::transaction::Version(2), + version: bitcoin::transaction::Version(3), lock_time: absolute::LockTime::from_consensus(0), input: tx_ins, output: tx_outs, diff --git a/core/tests/musig2.rs b/core/tests/musig2.rs index e39a6e36..395ee903 100644 --- a/core/tests/musig2.rs +++ b/core/tests/musig2.rs @@ -149,6 +149,7 @@ async fn key_spend() { &musig_agg_xonly_pubkey_wrapped, ) .unwrap(); + rpc.mine_blocks(1).await.unwrap(); tx_details.tx.input[0].witness.push(final_signature); rpc.client @@ -246,6 +247,7 @@ async fn key_spend_with_script() { &musig_agg_xonly_pubkey_wrapped, ) .unwrap(); + rpc.mine_blocks(1).await.unwrap(); tx_details.tx.input[0].witness.push(final_signature); rpc.client @@ -350,6 +352,7 @@ async fn script_spend() { let schnorr_sig = secp256k1::schnorr::Signature::from_slice(&final_signature).unwrap(); let witness_elements = vec![schnorr_sig.as_ref()]; handle_taproot_witness_new(&mut tx_details, &witness_elements, 0, Some(0)).unwrap(); + rpc.mine_blocks(1).await.unwrap(); rpc.client .send_raw_transaction(&tx_details.tx) diff --git a/core/tests/taproot.rs b/core/tests/taproot.rs index e9153180..987ecc11 100644 --- a/core/tests/taproot.rs +++ b/core/tests/taproot.rs @@ -81,6 +81,7 @@ async fn create_address_and_transaction_then_sign_transaction() { .sign_taproot_script_spend_tx_new_tweaked(&mut tx_details, 0, 0) .unwrap(); handle_taproot_witness_new(&mut tx_details, &[sig.as_ref()], 0, Some(0)).unwrap(); + rpc.mine_blocks(1).await.unwrap(); // New transaction should be OK to send. rpc.client