Skip to content

Commit fa9b419

Browse files
author
MarcoFalke
committed
test: Add test that mainnet requires standard txs
1 parent fa613ca commit fa9b419

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/feature_config_args.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def test_config_file_parser(self):
2929
conf.write("wallet=foo\n")
3030
self.nodes[0].assert_start_raises_init_error(expected_msg='Error: Config setting for -wallet only applied on regtest network when in [regtest] section.')
3131

32+
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
33+
conf.write('regtest=0\n') # mainnet
34+
conf.write('acceptnonstdtxn=1\n')
35+
self.nodes[0].assert_start_raises_init_error(expected_msg='Error: acceptnonstdtxn is not currently supported for main chain')
36+
3237
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
3338
conf.write('nono\n')
3439
self.nodes[0].assert_start_raises_init_error(expected_msg='Error reading configuration file: parse error on line 1: nono, if you intended to specify a negated option, use nono=1 instead')

0 commit comments

Comments
 (0)