From 0261ccbbe8c071b6f1782256719f8fe413f6368f Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 12 Jun 2019 22:01:46 +0100 Subject: [PATCH] qa: Don't allow smoke tests with mainnet wallet.dat --- qa/zcash/smoke_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/zcash/smoke_tests.py b/qa/zcash/smoke_tests.py index eb3d54b87..2acdfb6ff 100755 --- a/qa/zcash/smoke_tests.py +++ b/qa/zcash/smoke_tests.py @@ -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...')