mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge bitcoin/bitcoin#25121: test: compare /mempool/info
response with getmempoolinfo
RPC
1df42bc262d994c30d390ea73b232b8d2548899e 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 1df42bc262d994c30d390ea73b232b8d2548899e Tree-SHA512: 2de36d70fa61612e7976f875e55f98e78b1cdb909b48cff18e6a70c55eda34b799e210bcd55361ea947388b7778d867290a73be4f799bb36afd65423ad49c487
This commit is contained in:
parent
0b53b8f332
commit
431c1e3458
@ -306,6 +306,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…
Reference in New Issue
Block a user