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
@@ -3090,9 +3090,7 @@ mod tests {
3090
3090
assert_eq!(5000000000, utxo.amount);
3091
3091
}
3092
3092
3093
-
3094
3093
#[test]
3095
-
//NOTE: STALL if burn block at block_height doesn't exist....
3096
3094
fntest_get_utxos_fails_due_to_filtering(){
3097
3095
let miner_seed = vec![1,1,1,1];
3098
3096
let keychain = Keychain::default(miner_seed.clone());
@@ -3113,20 +3111,49 @@ mod tests {
3113
3111
btc_controller.bootstrap_chain(101);
3114
3112
3115
3113
let too_much_required = 1000000000000000000_u64;
3116
-
let utxos = btc_controller.get_utxos(StacksEpochId::Epoch31,&miner_pubkey, too_much_required,None,0);
3114
+
let utxos = btc_controller.get_utxos(
3115
+
StacksEpochId::Epoch31,
3116
+
&miner_pubkey,
3117
+
0,
3118
+
None,
3119
+
0,
3120
+
);
3117
3121
assert!(utxos.is_none(),"None because too much required");
3118
3122
3119
-
let other_pubkey = Secp256k1PublicKey::from_hex("01010101010101100101010101").unwrap();
3120
-
let utxos = btc_controller.get_utxos(StacksEpochId::Epoch31,&other_pubkey, too_much_required,None,0);
3121
-
assert!(utxos.is_none(),"None because utxos for other pubkey don't exist");
3123
+
let other_pubkey = Secp256k1PublicKey::from_hex("04ee0b1602eb18fef7986887a7e8769a30c9df981d33c8380d255edef003abdcd243a0eb74afdf6740e6c423e62aec631519a24cf5b1d62bf8a3e06ddc695dcb77").unwrap();
0 commit comments