mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Merge bitcoin/bitcoin#25121: test: compare /mempool/info
response with getmempoolinfo
RPC
1df42bc262
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: ACK1df42bc262
Tree-SHA512: 2de36d70fa61612e7976f875e55f98e78b1cdb909b48cff18e6a70c55eda34b799e210bcd55361ea947388b7778d867290a73be4f799bb36afd65423ad49c487
This commit is contained in:
commit
fe1fcdc629
1 changed files with 3 additions and 0 deletions
|
@ -330,6 +330,9 @@ class RESTTest (BitcoinTestFramework):
|
|||
# the size of the memory pool should be greater than 3x ~100 bytes
|
||||
assert_greater_than(json_obj['bytes'], 300)
|
||||
|
||||
mempool_info = self.nodes[0].getmempoolinfo()
|
||||
assert_equal(json_obj, mempool_info)
|
||||
|
||||
# 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue