qa: Don't allow smoke tests with mainnet wallet.dat

This commit is contained in:
Jack Grigg 2019-06-12 22:01:46 +01:00
parent a6ff0a0794
commit 0261ccbbe8
1 changed files with 5 additions and 0 deletions

View File

@ -726,6 +726,11 @@ def main():
print("Invalid stage '%s' (choose from %s)" % (s, STAGES))
sys.exit(1)
# Don't allow using the default wallet.dat in mainnet mode
if args.mainnet and args.wallet == 'wallet.dat':
print('Cannot use wallet.dat as wallet file when running mainnet tests. Keep your funds safe!')
sys.exit(1)
# Start zcashd
zcash = ZcashNode(args.datadir, args.wallet)
print('Starting zcashd...')