rpc: Improve getblock error message for invalid data type.
This commit is contained in:
1 parent
f5e8bcf985
commit
a411494261
2 files changed
+7
-3
No files matched your search
@@ -410,6 +410,9 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
self.log.info("Test that getblock with verbosity 2 still works with pruned Undo data")
|
||||
datadir = get_datadir_path(self.options.tmpdir, 0)
|
||||
|
||||
self.log.info("Test that getblock with invalid verbosity type returns proper error message")
|
||||
assert_raises_rpc_error(-1, "JSON value is not an integer as expected", node.getblock, blockhash, "2")
|
||||
|
||||
def move_block_file(old, new):
|
||||
old_path = os.path.join(datadir, self.chain, 'blocks', old)
|
||||
new_path = os.path.join(datadir, self.chain, 'blocks', new)
|
||||
|
||||
Reference in new issue
Block a user