Ported usage of deprecated optparse module to argparse module

This commit is contained in:
Kvaciral
2018-08-11 22:24:14 +02:00
parent 1b04b55f2d
commit 5654efb187
5 changed files with 41 additions and 41 deletions

View File

@ -19,8 +19,8 @@ class TxnMallTest(BitcoinTestFramework):
self.num_nodes = 4
def add_options(self, parser):
parser.add_option("--mineblock", dest="mine_block", default=False, action="store_true",
help="Test double-spend of 1-confirmed transaction")
parser.add_argument("--mineblock", dest="mine_block", default=False, action="store_true",
help="Test double-spend of 1-confirmed transaction")
def setup_network(self):
# Start with split network: