Skip to content

Commit 8ec24bd

Browse files
committed
test: Added coverage to Block not found error using gettxoutsetinfo
1 parent 323b0ac commit 8ec24bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/feature_coinstatsindex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ def _test_coin_stats_index(self):
242242
res12 = index_node.gettxoutsetinfo('muhash')
243243
assert_equal(res12, res10)
244244

245+
self.log.info("Test obtaining info for a non-existent block hash")
246+
assert_raises_rpc_error(-5, "Block not found", index_node.gettxoutsetinfo, hash_type="none", hash_or_height="ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", use_index=True)
247+
245248
def _test_use_index_option(self):
246249
self.log.info("Test use_index option for nodes running the index")
247250

0 commit comments

Comments
 (0)