mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
Ported usage of deprecated optparse module to argparse module
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user