3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

Add a comment.

This commit is contained in:
Mike Hearn 2013-03-07 18:43:15 +01:00
parent c8c1e68152
commit 2333c44657

View File

@ -301,6 +301,7 @@ public class Wallet implements Serializable, BlockChainListener {
txConfidenceListener = new TransactionConfidence.Listener() { txConfidenceListener = new TransactionConfidence.Listener() {
public void onConfidenceChanged(Transaction tx) { public void onConfidenceChanged(Transaction tx) {
lock.lock(); lock.lock();
// The invokers unlock us immediately so if an exception is thrown, the lock will be already open.
invokeOnTransactionConfidenceChanged(tx); invokeOnTransactionConfidenceChanged(tx);
// Many onWalletChanged events will not occur because they are suppressed, eg, because: // Many onWalletChanged events will not occur because they are suppressed, eg, because:
// - we are inside a re-org // - we are inside a re-org