aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-07-28 15:30:03 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-08-01 10:55:05 -0300
commit155344960b16d4b27dec3197dc273b03e6aed57d (patch)
treee0947c8c48a84b6244fdeaffde682b9d6e9066e0 /test
parent1d89fc695a3aeb3e3dcadf371b7667572b38c836 (diff)
test: negative/unknown `rpcserialversion` should throw an init error
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_segwit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/feature_segwit.py b/test/functional/feature_segwit.py
index f0faf1421b..7f2a615be1 100755
--- a/test/functional/feature_segwit.py
+++ b/test/functional/feature_segwit.py
@@ -609,6 +609,11 @@ class SegWitTest(BitcoinTestFramework):
assert_equal(self.nodes[1].gettransaction(txid, True)["txid"], txid)
assert_equal(self.nodes[1].listtransactions("*", 1, 0, True)[0]["txid"], txid)
+ self.log.info('Test negative and unknown rpcserialversion throw an init error')
+ self.stop_node(0)
+ self.nodes[0].assert_start_raises_init_error(["-rpcserialversion=-1"], "Error: rpcserialversion must be non-negative.")
+ self.nodes[0].assert_start_raises_init_error(["-rpcserialversion=100"], "Error: Unknown rpcserialversion requested.")
+
def mine_and_test_listunspent(self, script_list, ismine):
utxo = find_spendable_utxo(self.nodes[0], 50)
tx = CTransaction()