aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_rest.py
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-05-12 17:49:50 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-05-12 17:49:50 -0300
commit1df42bc262d994c30d390ea73b232b8d2548899e (patch)
treef33717f2c00e45d7e767d08cdaebf70cc4229595 /test/functional/interface_rest.py
parentdd9f61a184d4d395591ee3e9f1e839473e88ffd0 (diff)
downloadbitcoin-1df42bc262d994c30d390ea73b232b8d2548899e.tar.xz
test: compare `/mempool/info` response with `getmempoolinfo` RPC
Diffstat (limited to 'test/functional/interface_rest.py')
-rwxr-xr-xtest/functional/interface_rest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py
index 2c158e37e7..f36bbda3af 100755
--- a/test/functional/interface_rest.py
+++ b/test/functional/interface_rest.py
@@ -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)