You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3101,9 +3101,7 @@ mod tests {
3101
3101
assert_eq!(5000000000, utxo.amount);
3102
3102
}
3103
3103
3104
-
3105
3104
#[test]
3106
-
//NOTE: STALL if burn block at block_height doesn't exist....
3107
3105
fntest_get_utxos_fails_due_to_filtering(){
3108
3106
let miner_seed = vec![1,1,1,1];
3109
3107
let keychain = Keychain::default(miner_seed.clone());
@@ -3124,20 +3122,49 @@ mod tests {
3124
3122
btc_controller.bootstrap_chain(101);
3125
3123
3126
3124
let too_much_required = 1000000000000000000_u64;
3127
-
let utxos = btc_controller.get_utxos(StacksEpochId::Epoch31,&miner_pubkey, too_much_required,None,0);
3125
+
let utxos = btc_controller.get_utxos(
3126
+
StacksEpochId::Epoch31,
3127
+
&miner_pubkey,
3128
+
0,
3129
+
None,
3130
+
0,
3131
+
);
3128
3132
assert!(utxos.is_none(),"None because too much required");
3129
3133
3130
-
let other_pubkey = Secp256k1PublicKey::from_hex("01010101010101100101010101").unwrap();
3131
-
let utxos = btc_controller.get_utxos(StacksEpochId::Epoch31,&other_pubkey, too_much_required,None,0);
3132
-
assert!(utxos.is_none(),"None because utxos for other pubkey don't exist");
3134
+
let other_pubkey = Secp256k1PublicKey::from_hex("04ee0b1602eb18fef7986887a7e8769a30c9df981d33c8380d255edef003abdcd243a0eb74afdf6740e6c423e62aec631519a24cf5b1d62bf8a3e06ddc695dcb77").unwrap();
0 commit comments