Skip to content

Commit 1553449

Browse files
committed
test: negative/unknown rpcserialversion should throw an init error
1 parent 1d89fc6 commit 1553449

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/feature_segwit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ def run_test(self):
609609
assert_equal(self.nodes[1].gettransaction(txid, True)["txid"], txid)
610610
assert_equal(self.nodes[1].listtransactions("*", 1, 0, True)[0]["txid"], txid)
611611

612+
self.log.info('Test negative and unknown rpcserialversion throw an init error')
613+
self.stop_node(0)
614+
self.nodes[0].assert_start_raises_init_error(["-rpcserialversion=-1"], "Error: rpcserialversion must be non-negative.")
615+
self.nodes[0].assert_start_raises_init_error(["-rpcserialversion=100"], "Error: Unknown rpcserialversion requested.")
616+
612617
def mine_and_test_listunspent(self, script_list, ismine):
613618
utxo = find_spendable_utxo(self.nodes[0], 50)
614619
tx = CTransaction()

0 commit comments

Comments
 (0)