Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_keypool_topup.py
Show All 19 Lines | from test_framework.util import ( | ||||
sync_blocks, | sync_blocks, | ||||
) | ) | ||||
class KeypoolRestoreTest(BitcoinTestFramework): | class KeypoolRestoreTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [[], ['-keypool=100']] | self.extra_args = [['-deprecatedrpc=accounts'], | ||||
['-deprecatedrpc=accounts', '-keypool=100']] | |||||
def run_test(self): | def run_test(self): | ||||
wallet_path = os.path.join( | wallet_path = os.path.join( | ||||
self.nodes[1].datadir, "regtest", "wallets", "wallet.dat") | self.nodes[1].datadir, "regtest", "wallets", "wallet.dat") | ||||
wallet_backup_path = os.path.join(self.nodes[1].datadir, "wallet.bak") | wallet_backup_path = os.path.join(self.nodes[1].datadir, "wallet.bak") | ||||
self.nodes[0].generate(101) | self.nodes[0].generate(101) | ||||
self.log.info("Make backup of wallet") | self.log.info("Make backup of wallet") | ||||
Show All 36 Lines |