mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
override needsGenerate is reuseAddress pref set
This commit is contained in:
parent
e88e0fb5b7
commit
27536fe642
1 changed files with 5 additions and 0 deletions
|
@ -1333,6 +1333,11 @@ mixin ElectrumXInterface<T extends ElectrumXCurrencyInterface>
|
|||
needsGenerate = txCount > 0 || currentReceiving.derivationIndex < 0;
|
||||
}
|
||||
|
||||
// If the reuseAddress flag is set, don't generate a new address.
|
||||
if (prefs.reuseAddress) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (needsGenerate) {
|
||||
await generateNewReceivingAddress();
|
||||
|
||||
|
|
Loading…
Reference in a new issue