3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

Add setter for wallet factory to WalletAppKit.

This commit is contained in:
Jan Vornberger 2016-03-26 15:25:29 +01:00 committed by Andreas Schildbach
parent 7e609a2409
commit 3d06dd9802

View File

@ -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