test: Added coverage to Block not found error using gettxoutsetinfo

This commit is contained in:
kevkevinpal 2024-06-25 20:51:39 -04:00
parent 323b0acfcb
commit 8ec24bdad8
No known key found for this signature in database
GPG key ID: B4346A15246A925D

View file

@ -242,6 +242,9 @@ class CoinStatsIndexTest(BitcoinTestFramework):
res12 = index_node.gettxoutsetinfo('muhash')
assert_equal(res12, res10)
self.log.info("Test obtaining info for a non-existent block hash")
assert_raises_rpc_error(-5, "Block not found", index_node.gettxoutsetinfo, hash_type="none", hash_or_height="ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", use_index=True)
def _test_use_index_option(self):
self.log.info("Test use_index option for nodes running the index")