aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-25 19:24:08 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-25 19:24:05 +0200
commitfa6b11a55663e70369bfbbba5fccc55b33f2b310 (patch)
tree0026dd3799c048f20295336d8a0acb61c1bb9109 /test/functional
parent25202cace9140870c75cb3a811e10045df88c226 (diff)
downloadbitcoin-fa6b11a55663e70369bfbbba5fccc55b33f2b310.tar.xz
test: Throw error when -signetchallenge is non-hex
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/feature_signet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/feature_signet.py b/test/functional/feature_signet.py
index b41fe378af..a90a2a8e5e 100755
--- a/test/functional/feature_signet.py
+++ b/test/functional/feature_signet.py
@@ -76,6 +76,9 @@ class SignetBasicTest(BitcoinTestFramework):
self.log.info("test that signet logs the network magic on node start")
with self.nodes[0].assert_debug_log(["Signet derived magic (message start)"]):
self.restart_node(0)
+ self.stop_node(0)
+ self.nodes[0].assert_start_raises_init_error(extra_args=["-signetchallenge=abc"], expected_msg="Error: -signetchallenge must be hex, not 'abc'.")
+ self.nodes[0].assert_start_raises_init_error(extra_args=["-signetchallenge=abc"] * 2, expected_msg="Error: -signetchallenge cannot be multiple values.")
if __name__ == '__main__':