From 3d06dd9802261cf3e24ad5574a1994096b023fdb Mon Sep 17 00:00:00 2001 From: Jan Vornberger Date: Sat, 26 Mar 2016 15:25:29 +0100 Subject: [PATCH] Add setter for wallet factory to WalletAppKit. --- core/src/main/java/org/bitcoinj/kits/WalletAppKit.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java b/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java index 90bafe8e..5a4c33b0 100644 --- a/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java +++ b/core/src/main/java/org/bitcoinj/kits/WalletAppKit.java @@ -176,6 +176,14 @@ public class WalletAppKit extends AbstractIdleService { return this; } + /** + * Sets a wallet factory which will be used when the kit creates a new wallet. + */ + public WalletAppKit setWalletFactory(WalletProtobufSerializer.WalletFactory walletFactory) { + this.walletFactory = walletFactory; + return this; + } + /** * If a seed is set here then any existing wallet that matches the file name will be renamed to a backup name, * the chain file will be deleted, and the wallet object will be instantiated with the given seed instead of