aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_scanblocks.py
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-10-14 20:59:48 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-04-30 19:26:11 +0100
commitb922f6b5262884f42d7483f1e9af35650bdb53a7 (patch)
tree716dd07d17507e93d84e5dff303b885e439dec1f /test/functional/rpc_scanblocks.py
parentce50acc54fa313a92d48ed03e46ce8aabcf267e5 (diff)
rpc: scanblocks, add "completed" flag to the result obj
To tell the user whether the process was aborted or not. Plus, as the process can be aborted prior to the end range, have also changed the "to_height" result value to return the last scanned block instead of the end range block.
Diffstat (limited to 'test/functional/rpc_scanblocks.py')
-rwxr-xr-xtest/functional/rpc_scanblocks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/rpc_scanblocks.py b/test/functional/rpc_scanblocks.py
index 126e95362b..51157a3b7e 100755
--- a/test/functional/rpc_scanblocks.py
+++ b/test/functional/rpc_scanblocks.py
@@ -48,6 +48,7 @@ class ScanblocksTest(BitcoinTestFramework):
assert blockhash in out['relevant_blocks']
assert_equal(height, out['to_height'])
assert_equal(0, out['from_height'])
+ assert_equal(True, out['completed'])
# mine another block
blockhash_new = self.generate(node, 1)[0]