mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Wallet: don't save wallet and invoke event listeners when adding watched scripts if the call was a no-op.
This commit is contained in:
parent
e9f016b753
commit
3cdb039a29
@ -766,8 +766,10 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
||||
} finally {
|
||||
keychainLock.writeLock().unlock();
|
||||
}
|
||||
queueOnScriptsChanged(scripts, true);
|
||||
saveNow();
|
||||
if (added > 0) {
|
||||
queueOnScriptsChanged(scripts, true);
|
||||
saveNow();
|
||||
}
|
||||
return added;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user