0

Starting a Private Node using bitcoin-qt.

And then I generate a pair of keys for my own testing.

But unfortunately whenever I reset the node, it will generate a new pairs of keys, it makes my recursive test very tedious.

Is there a way for me to load a private key into my wallet instead of using getnewaddress every time and test with a new pair of keys?

1 Answer 1

1

Replace wallet.dat with a saved copy

2
  • You mean replace the physical files inside the wallet directory?
    – s k
    Apr 4, 2021 at 10:10
  • @sk Yes. Make backups and restore backups, either manually or using the provided facilities. Practise first on non-valuable wallets until you are sure your actions have the effects you seek and no effects you consider harmful. On Ms-Windows see `%APPDATA%\Bitcoin\wallets` Apr 4, 2021 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.