mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +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:
@@ -766,8 +766,10 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
|||||||
} finally {
|
} finally {
|
||||||
keychainLock.writeLock().unlock();
|
keychainLock.writeLock().unlock();
|
||||||
}
|
}
|
||||||
queueOnScriptsChanged(scripts, true);
|
if (added > 0) {
|
||||||
saveNow();
|
queueOnScriptsChanged(scripts, true);
|
||||||
|
saveNow();
|
||||||
|
}
|
||||||
return added;
|
return added;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user