File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
testnet/stacks-node/src/burnchains Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2599,6 +2599,9 @@ impl BitcoinRPCRequest {
2599
2599
let min_conf = 0i64 ;
2600
2600
let max_conf = 9999999i64 ;
2601
2601
let minimum_amount = ParsedUTXO :: sat_to_serialized_btc ( minimum_sum_amount) ;
2602
+ // Specify the maximum number of UTXOs to get from listunspent, to
2603
+ // ensure the response is not too large.
2604
+ let maximum_count = 1024 ;
2602
2605
2603
2606
let payload = BitcoinRPCRequest {
2604
2607
method : "listunspent" . to_string ( ) ,
@@ -2607,7 +2610,7 @@ impl BitcoinRPCRequest {
2607
2610
max_conf. into( ) ,
2608
2611
addresses. into( ) ,
2609
2612
include_unsafe. into( ) ,
2610
- json!( { "minimumAmount" : minimum_amount } ) ,
2613
+ json!( { "minimumAmount" : minimum_amount, "maximumCount" : maximum_count } ) ,
2611
2614
] ,
2612
2615
id : "stacks" . to_string ( ) ,
2613
2616
jsonrpc : "2.0" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments