aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-04-21 08:31:01 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-04-21 08:31:01 -0300
commitbef61496ab5e12e38ac5794cd0836723af070ab5 (patch)
tree1fb29d2c76dac30bb0a476813414e85ef4d7d2d5 /test
parent5bc5cbaf310f60e89c72e8ecf3f6187c85499027 (diff)
downloadbitcoin-bef61496ab5e12e38ac5794cd0836723af070ab5.tar.xz
test: compare `/mempool/contents` response with `getrawmempool` RPC
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/interface_rest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py
index 30c9e0c9cd..95dc40cb52 100755
--- a/test/functional/interface_rest.py
+++ b/test/functional/interface_rest.py
@@ -326,6 +326,10 @@ class RESTTest (BitcoinTestFramework):
# Check that there are our submitted transactions in the TX memory pool
json_obj = self.test_rest_request("/mempool/contents")
+ raw_mempool_verbose = self.nodes[0].getrawmempool(verbose=True)
+
+ assert_equal(json_obj, raw_mempool_verbose)
+
for i, tx in enumerate(txs):
assert tx in json_obj
assert_equal(json_obj[tx]['spentby'], txs[i + 1:i + 2])