mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-08 03:59:18 +02:00
test: negative/unknown rpcserialversion
should throw an init error
This commit is contained in:
parent
1d89fc695a
commit
155344960b
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user