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: stacks-node/src/burnchains/rpc/bitcoin_rpc_client/mod.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -491,7 +491,7 @@ impl BitcoinRpcClient {
491
491
/// * `addresses` - Optional list of addresses to filter UTXOs by (Default: no filtering).
492
492
/// * `include_unsafe` - Whether to include UTXOs from unconfirmed unsafe transactions (Default: `true`).
493
493
/// * `minimum_amount` - Minimum amount in satoshis (internally converted to BTC string to preserve full precision) a UTXO must have to be included (Default: 0).
494
-
/// * `maximum_count` - Maximum number of UTXOs to return. Use `None` for effectively unlimited (Default: 9.999.999).
494
+
/// * `maximum_count` - Maximum number of UTXOs to return. Use `None` for effectively 'unlimited' (Default: 0).
495
495
///
496
496
/// # Returns
497
497
/// A Vec<[`ListUnspentResponse`]> containing the matching UTXOs.
@@ -513,7 +513,7 @@ impl BitcoinRpcClient {
513
513
let addresses = addresses.unwrap_or(&[]);
514
514
let include_unsafe = include_unsafe.unwrap_or(true);
515
515
let minimum_amount = minimum_amount.unwrap_or(0);
516
-
let maximum_count = maximum_count.unwrap_or(9_999_999);
516
+
let maximum_count = maximum_count.unwrap_or(0);
517
517
518
518
let addr_as_strings:Vec<String> = addresses.iter().map(|addr| addr.to_string()).collect();
519
519
let min_amount_btc_str = convert_sat_to_btc_string(minimum_amount);
0 commit comments