mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-26 14:59:16 +02:00
Merge bitcoin/bitcoin#26280: rpc: Return coinbase flag in scantxoutset
fa08663344rpc: Return coinbase flag in scantxoutset (MacroFake) Pull request description: I guess it can't hurt to return this for someone that wants to know it ACKs for top commit: aureleoules: ACKfa08663344shaavan: ACKfa08663344Tree-SHA512: 04c554b3ed9877bab93ffcf0c1a4430cd41b30c5f4f3bf462a518fc8b3d68832dd85a29e81bd805eaa16e987856933d7a888a8c126f670bb2844bbd5ca1bf902
This commit is contained in:
@@ -33,6 +33,9 @@ class ScantxoutsetTest(BitcoinTestFramework):
|
||||
self.wallet = MiniWallet(self.nodes[0])
|
||||
self.wallet.rescan_utxos()
|
||||
|
||||
self.log.info("Test if we find coinbase outputs.")
|
||||
assert_equal(sum(u["coinbase"] for u in self.nodes[0].scantxoutset("start", [self.wallet.get_descriptor()])["unspents"]), 49)
|
||||
|
||||
self.log.info("Create UTXOs...")
|
||||
pubk1, spk_P2SH_SEGWIT, addr_P2SH_SEGWIT = getnewdestination("p2sh-segwit")
|
||||
pubk2, spk_LEGACY, addr_LEGACY = getnewdestination("legacy")
|
||||
|
||||
Reference in New Issue
Block a user