Skip to content

Commit 431c1e3

Browse files
MacroFakePastaPastaPasta
authored andcommitted
Merge 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 bitcoin#24936 and bitcoin#24797. ACKs for top commit: theStack: ACK 1df42bc Tree-SHA512: 2de36d70fa61612e7976f875e55f98e78b1cdb909b48cff18e6a70c55eda34b799e210bcd55361ea947388b7778d867290a73be4f799bb36afd65423ad49c487
1 parent 0b53b8f commit 431c1e3

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
@@ -306,6 +306,9 @@ def run_test(self):
306306
# the size of the memory pool should be greater than 3x ~100 bytes
307307
assert_greater_than(json_obj['bytes'], 300)
308308

309+
mempool_info = self.nodes[0].getmempoolinfo()
310+
assert_equal(json_obj, mempool_info)
311+
309312
# Check that there are our submitted transactions in the TX memory pool
310313
json_obj = self.test_rest_request("/mempool/contents")
311314
raw_mempool_verbose = self.nodes[0].getrawmempool(verbose=True)

0 commit comments

Comments
 (0)