aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_rest.py
diff options
context:
space:
mode:
authorConor Scott <conor.r.scott.88@gmail.com>2018-02-18 10:54:20 -0500
committerConor Scott <conor.r.scott.88@gmail.com>2018-02-25 19:02:54 -0500
commit1dfb4e7d753e9282c89d55bde358b8ad96d3bfc2 (patch)
treee3e98fbf6dc7c4c55bbe1d2881b8519f047e1528 /test/functional/interface_rest.py
parentfc44cb108b8d2d701fd453657d0837b1e539bcb7 (diff)
downloadbitcoin-1dfb4e7d753e9282c89d55bde358b8ad96d3bfc2.tar.xz
[Tests] Check output of parent/child tx list from getrawmempool, getmempooldescendants, getmempoolancestors, and REST interface
Diffstat (limited to 'test/functional/interface_rest.py')
-rwxr-xr-xtest/functional/interface_rest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py
index 9006e27cbe..9c94175cfd 100755
--- a/test/functional/interface_rest.py
+++ b/test/functional/interface_rest.py
@@ -295,8 +295,10 @@ class RESTTest (BitcoinTestFramework):
# check that there are our submitted transactions in the TX memory pool
json_string = http_get_call(url.hostname, url.port, '/rest/mempool/contents'+self.FORMAT_SEPARATOR+'json')
json_obj = json.loads(json_string)
- for tx in txs:
+ for i, tx in enumerate(txs):
assert_equal(tx in json_obj, True)
+ assert_equal(json_obj[tx]['spentby'], txs[i+1:i+2])
+ assert_equal(json_obj[tx]['depends'], txs[i-1:i])
# now mine the transactions
newblockhash = self.nodes[1].generate(1)