diff options
author | brunoerg <brunoely.gc@gmail.com> | 2022-04-21 08:31:01 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2022-04-21 08:31:01 -0300 |
commit | bef61496ab5e12e38ac5794cd0836723af070ab5 (patch) | |
tree | 1fb29d2c76dac30bb0a476813414e85ef4d7d2d5 | |
parent | 5bc5cbaf310f60e89c72e8ecf3f6187c85499027 (diff) |
test: compare `/mempool/contents` response with `getrawmempool` RPC
-rwxr-xr-x | test/functional/interface_rest.py | 4 |
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]) |