QA: interface_rest: Check /mempool/info/with_fee_histogram matches RPC

This commit is contained in:
Luke Dashjr 2022-11-10 04:05:53 +00:00
parent 0bfca0cf32
commit 966644d79b

View File

@ -338,6 +338,9 @@ class RESTTest (BitcoinTestFramework):
mempool_info = self.nodes[0].getmempoolinfo() mempool_info = self.nodes[0].getmempoolinfo()
assert_equal(json_obj, mempool_info) assert_equal(json_obj, mempool_info)
json_obj = self.test_rest_request("/mempool/info/with_fee_histogram")
mempool_info = self.nodes[0].getmempoolinfo(with_fee_histogram=True)
assert_equal(json_obj, mempool_info)
# Check that there are our submitted transactions in the TX memory pool # Check that there are our submitted transactions in the TX memory pool
json_obj = self.test_rest_request("/mempool/contents") json_obj = self.test_rest_request("/mempool/contents")