mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
Add setter for wallet factory to WalletAppKit.
This commit is contained in:
parent
7e609a2409
commit
3d06dd9802
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue