aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-05-30 17:51:53 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-05-31 08:23:38 -0300
commitebfc308ea4b8851118e8194d837556bf443c329c (patch)
tree810f4a10853562a0e29d5c632701b024df8b7b47 /test
parent5f65afff9c4c735d607a69fc3d18b4ecadbf3ba9 (diff)
downloadbitcoin-ebfc308ea4b8851118e8194d837556bf443c329c.tar.xz
test: add coverage for non-hex value to -minimumchainwork
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_minchainwork.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/feature_minchainwork.py b/test/functional/feature_minchainwork.py
index f6432ed20e..fa10855a98 100755
--- a/test/functional/feature_minchainwork.py
+++ b/test/functional/feature_minchainwork.py
@@ -106,5 +106,13 @@ class MinimumChainWorkTest(BitcoinTestFramework):
# not be exercising the logic we want!)
assert_equal(self.nodes[2].getblockchaininfo()['initialblockdownload'], True)
+ self.log.info("Test -minimumchainwork with a non-hex value")
+ self.stop_node(0)
+ self.nodes[0].assert_start_raises_init_error(
+ ["-minimumchainwork=test"],
+ expected_msg='Error: Invalid non-hex (test) minimum chain work value specified',
+ )
+
+
if __name__ == '__main__':
MinimumChainWorkTest().main()