aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_txoutproof.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-09-09 10:48:45 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-09-09 11:27:33 +0200
commitfaf5eb45c4a08fbfd9a8c12534bca8adfe756ef2 (patch)
treec29b39a7443a9a0aed06e57f9c940e63f3930fec /test/functional/rpc_txoutproof.py
parentfa56e866e8ac08b35e775a4e37a4e5849e093c7d (diff)
downloadbitcoin-faf5eb45c4a08fbfd9a8c12534bca8adfe756ef2.tar.xz
test: Test empty array in gettxoutproof
Diffstat (limited to 'test/functional/rpc_txoutproof.py')
-rwxr-xr-xtest/functional/rpc_txoutproof.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/rpc_txoutproof.py b/test/functional/rpc_txoutproof.py
index 66dbf292ac..1699d36cfa 100755
--- a/test/functional/rpc_txoutproof.py
+++ b/test/functional/rpc_txoutproof.py
@@ -77,6 +77,8 @@ class MerkleBlockTest(BitcoinTestFramework):
assert_equal(self.nodes[0].verifytxoutproof(self.nodes[1].gettxoutproof([txid_spent])), [txid_spent])
# We can't get a proof if we specify transactions from different blocks
assert_raises_rpc_error(-5, "Not all transactions found in specified or retrieved block", self.nodes[0].gettxoutproof, [txid1, txid3])
+ # Test empty list
+ assert_raises_rpc_error(-5, "Transaction not yet in block", self.nodes[0].gettxoutproof, [])
# Now we'll try tweaking a proof.
proof = self.nodes[1].gettxoutproof([txid1, txid2])