aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2017-08-31 13:18:35 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2017-08-31 13:18:35 -0400
commit617c459c6c56911e70855dbe139ab095f435e73e (patch)
treedc28be695d0d650b2b3f5858e32b667fa9bda77b /test
parent7e5d5965d12f4e110c026124ed326b03291fe469 (diff)
downloadbitcoin-617c459c6c56911e70855dbe139ab095f435e73e.tar.xz
qa: rpc test for wtxid in mempool entry
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/segwit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/segwit.py b/test/functional/segwit.py
index 7bcb393012..1736cd10ba 100755
--- a/test/functional/segwit.py
+++ b/test/functional/segwit.py
@@ -281,6 +281,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)