Skip to content

Commit bef6149

Browse files
committed
test: compare /mempool/contents response with getrawmempool RPC
1 parent 5bc5cba commit bef6149

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/interface_rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ def run_test(self):
326326

327327
# Check that there are our submitted transactions in the TX memory pool
328328
json_obj = self.test_rest_request("/mempool/contents")
329+
raw_mempool_verbose = self.nodes[0].getrawmempool(verbose=True)
330+
331+
assert_equal(json_obj, raw_mempool_verbose)
332+
329333
for i, tx in enumerate(txs):
330334
assert tx in json_obj
331335
assert_equal(json_obj[tx]['spentby'], txs[i + 1:i + 2])

0 commit comments

Comments
 (0)