mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 10:45:51 +00:00
Add setter for wallet factory to WalletAppKit.
This commit is contained in:
parent
7e609a2409
commit
3d06dd9802
@ -176,6 +176,14 @@ public class WalletAppKit extends AbstractIdleService {
|
|||||||
return this;
|
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,
|
* 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
|
* the chain file will be deleted, and the wallet object will be instantiated with the given seed instead of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user