Skip to content

Commit 1df42bc

Browse files
committed
test: compare /mempool/info response with getmempoolinfo RPC
1 parent dd9f61a commit 1df42bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/interface_rest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def run_test(self):
330330
# the size of the memory pool should be greater than 3x ~100 bytes
331331
assert_greater_than(json_obj['bytes'], 300)
332332

333+
mempool_info = self.nodes[0].getmempoolinfo()
334+
assert_equal(json_obj, mempool_info)
335+
333336
# Check that there are our submitted transactions in the TX memory pool
334337
json_obj = self.test_rest_request("/mempool/contents")
335338
raw_mempool_verbose = self.nodes[0].getrawmempool(verbose=True)

0 commit comments

Comments
 (0)