[rpc] return effective-feerate in testmempoolaccept and submitpackage

This commit is contained in:
glozow committed 2023-01-10 11:06:10 +00:00
1 parent d6c7b78ef2
commit 1691eaa818
4 files changed
+50 -20

No files matched your search

+4 -1
View File
@@ -58,7 +58,10 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
"""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
# Skip these checks for now
r.pop('wtxid')
if "fees" in r:
r["fees"].pop("effective-feerate")
assert_equal(result_expected, result_test)
assert_equal(self.nodes[0].getmempoolinfo()['size'], self.mempool_size) # Must not change mempool state