rpc: Return wtxid from testmempoolaccept

This commit is contained in:
MarcoFalke committed 2021-01-12 18:43:43 +01:00
1 parent 6af013792f
commit fa0aa87071
7 files changed
+48 -10

No files matched your search

+2
View File
@@ -51,6 +51,8 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
def check_mempool_result(self, result_expected, *args, **kwargs):
"""Wrapper to check result of testmempoolaccept on node_0's mempool"""
result_test = self.nodes[0].testmempoolaccept(*args, **kwargs)
for r in result_test:
r.pop('wtxid') # Skip check for now
assert_equal(result_expected, result_test)
assert_equal(self.nodes[0].getmempoolinfo()['size'], self.mempool_size) # Must not change mempool state