Skip to content

Commit 617c459

Browse files
committed
qa: rpc test for wtxid in mempool entry
1 parent 7e5d596 commit 617c459

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/segwit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ def run_test(self):
281281
assert(txid2 in template_txids)
282282
assert(txid3 in template_txids)
283283

284+
# Check that wtxid is properly reported in mempool entry
285+
assert_equal(int(self.nodes[0].getmempoolentry(txid3)["wtxid"], 16), tx.calc_sha256(True))
286+
284287
# Mine a block to clear the gbt cache again.
285288
self.nodes[0].generate(1)
286289

0 commit comments

Comments
 (0)