From 36850b1d0e651a0f91bd9056ceb7bfa157957917 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 17 Dec 2014 23:17:57 +0100 Subject: [PATCH] Add warning about randomly generated keys to Wallet constructor. --- core/src/main/java/org/bitcoinj/core/Wallet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/Wallet.java b/core/src/main/java/org/bitcoinj/core/Wallet.java index 0120ffb1..7fd561a0 100644 --- a/core/src/main/java/org/bitcoinj/core/Wallet.java +++ b/core/src/main/java/org/bitcoinj/core/Wallet.java @@ -213,8 +213,9 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha @Nullable volatile private UTXOProvider vUTXOProvider; /** - * Creates a new, empty wallet with no keys and no transactions. If you want to restore a wallet from disk instead, - * see loadFromFile. + * Creates a new, empty wallet with a randomly chosen seed and no transactions. Make sure to provide for sufficient + * backup! Any keys will be derived from the seed. If you want to restore a wallet from disk instead, see + * {@link #loadFromFile}. */ public Wallet(NetworkParameters params) { this(params, new KeyChainGroup(params));