Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- from test_framework.test_framework import BitcoinTestFramework
- from test_framework.util import assert_equal, get_bip9_status
- class RustyAssertTest(BitcoinTestFramework):
- def set_test_params(self):
- self.num_nodes = 1
- self.setup_clean_chain = True
- def run_test(self):
- self.log.info("initialise chain by activating segwit")
- self.restart_node(0, ["-vbparams=segwit:0:999999999999"])
- self.nodes[0].generate(500)
- assert_equal(get_bip9_status(self.nodes[0], 'segwit')['status'], 'active')
- self.restart_node(0)
- self.log.info("restart with segwit always active")
- del self.extra_args
- if __name__ == '__main__':
- RustyAssertTest().main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement