Ported usage of deprecated optparse module to argparse module

This commit is contained in:
Kvaciral committed 2018-08-12 00:23:53 +02:00
1 parent 1b04b55f2d
commit 5654efb187
5 files changed
+41 -41

No files matched your search

+2 -2
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: