Skip to content

Commit faf5eb4

Browse files
author
MarcoFalke
committed
test: Test empty array in gettxoutproof
1 parent fa56e86 commit faf5eb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/rpc_txoutproof.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def run_test(self):
7777
assert_equal(self.nodes[0].verifytxoutproof(self.nodes[1].gettxoutproof([txid_spent])), [txid_spent])
7878
# We can't get a proof if we specify transactions from different blocks
7979
assert_raises_rpc_error(-5, "Not all transactions found in specified or retrieved block", self.nodes[0].gettxoutproof, [txid1, txid3])
80+
# Test empty list
81+
assert_raises_rpc_error(-5, "Transaction not yet in block", self.nodes[0].gettxoutproof, [])
8082

8183
# Now we'll try tweaking a proof.
8284
proof = self.nodes[1].gettxoutproof([txid1, txid2])

0 commit comments

Comments
 (0)