diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-09-06 20:56:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-09-06 20:57:18 +0200 |
commit | d745b4cf7b0946184992d741b286bfdd28c68453 (patch) | |
tree | cf41d0033495d4943c1681c30ba9df3017f12bad /test | |
parent | 59e17899a762c08ce9a9edd7f464e884edbe8654 (diff) | |
parent | 617c459c6c56911e70855dbe139ab095f435e73e (diff) |
Merge #11203: rpc: add wtxid to mempool entry output
617c459c6 qa: rpc test for wtxid in mempool entry (Suhas Daftuar)
7e5d5965d RPC: add wtxid to mempool entry output (Suhas Daftuar)
Pull request description:
We already cache this information in the mempool, so including it in the output of rpc calls is basically free.
Tree-SHA512: 2757e1bfca028103937e4b76ce1a5d805846bad5d3d9dd631dcc5f87721bcc0e9d19e437e02053ef1dd3b38b503f0fca8c0b8492cac37dfbd70256a3665f704c
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/segwit.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/segwit.py b/test/functional/segwit.py index 609c592ed3..f465c1683b 100755 --- a/test/functional/segwit.py +++ b/test/functional/segwit.py @@ -279,6 +279,9 @@ class SegWitTest(BitcoinTestFramework): assert(txid2 in template_txids) assert(txid3 in template_txids) + # Check that wtxid is properly reported in mempool entry + assert_equal(int(self.nodes[0].getmempoolentry(txid3)["wtxid"], 16), tx.calc_sha256(True)) + # Mine a block to clear the gbt cache again. self.nodes[0].generate(1) |