mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-05 11:28:49 +02:00
Merge bitcoin/bitcoin#24198: wallet, rpc: add wtxid in WalletTxToJSON
7abd8b21badoc: include wtxid in TransactionDescriptionString (brunoerg)2d596bce6fdoc: add wtxid info in release-notes (brunoerg)a5b66738f1test: add wtxid in expected_fields for wallet_basic (brunoerg)e8c659a297wallet: add wtxid in WalletTxToJSON (brunoerg)7482b6f895wallet: add GetWitnessHash() (brunoerg) Pull request description: This PR add `wtxid` in `WalletTxToJSON` which allows to return this field in `listsinceblock`, `listtransactions` and `gettransaction` (RPCs). ACKs for top commit: achow101: re-ACK7abd8b21baw0xlt: crACK7abd8b2luke-jr: re-utACK7abd8b21baTree-SHA512: f86f2dbb5e38e7b19932006121802f47b759d31bdbffe3263d1db464f6a3a30fddd68416f886a44f6d3a9fd570f7bd4f8d999737ad95c189e7ae5e8ec1ffbdaa
This commit is contained in:
@@ -668,7 +668,7 @@ class WalletTest(BitcoinTestFramework):
|
||||
"category": baz["category"],
|
||||
"vout": baz["vout"]}
|
||||
expected_fields = frozenset({'amount', 'bip125-replaceable', 'confirmations', 'details', 'fee',
|
||||
'hex', 'time', 'timereceived', 'trusted', 'txid', 'walletconflicts'})
|
||||
'hex', 'time', 'timereceived', 'trusted', 'txid', 'wtxid', 'walletconflicts'})
|
||||
verbose_field = "decoded"
|
||||
expected_verbose_fields = expected_fields | {verbose_field}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user