Skip to content

Commit fe1fcdc

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#25121: test: compare /mempool/info response with getmempoolinfo RPC
1df42bc test: compare `/mempool/info` response with `getmempoolinfo` RPC (brunoerg) Pull request description: This PRs compares `/mempool/info` REST response with `getmempoolinfo` RPC in `interface_rest.py`. Similar to #24936 and #24797. ACKs for top commit: theStack: ACK 1df42bc Tree-SHA512: 2de36d70fa61612e7976f875e55f98e78b1cdb909b48cff18e6a70c55eda34b799e210bcd55361ea947388b7778d867290a73be4f799bb36afd65423ad49c487
2 parents 2709ffb + 1df42bc commit fe1fcdc

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)