Skip to content

Commit ba4c1e0

Browse files
committed
bitcoind: include change outputs in listsinceblock
1 parent caaca1f commit ba4c1e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/bitcoin/d/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,13 @@ impl BitcoinD {
528528
pub fn list_since_block(&self, block_hash: &bitcoin::BlockHash) -> LSBlockRes {
529529
self.make_wallet_request(
530530
"listsinceblock",
531-
&params!(Json::String(block_hash.to_string()),),
531+
&params!(
532+
Json::String(block_hash.to_string()),
533+
Json::Number(1.into()), // Default for min_confirmations for the returned
534+
Json::Bool(true), // Whether to include watchonly
535+
Json::Bool(false), // Whether to include an array of txs that were removed in reorgs
536+
Json::Bool(true) // Whether to include UTxOs treated as change.
537+
),
532538
)
533539
.into()
534540
}

0 commit comments

Comments
 (0)