3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

Wallet: another re-org fix.

This commit is contained in:
Mike Hearn 2013-09-23 16:53:36 +02:00
parent 60688752c9
commit 059b896062

View File

@ -515,9 +515,11 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi
BlockChain.NewBlockType blockType) throws VerificationException {
lock.lock();
try {
Transaction tx = pending.get(txHash);
if (tx == null)
Transaction tx = transactions.get(txHash);
if (tx == null) {
log.error("TX {} not found despite being sent to wallet", txHash);
return;
}
receive(tx, block, blockType);
} finally {
lock.unlock();