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

Transaction: Clear depth/work data when setting confidence type to pending.

This commit is contained in:
Mike Hearn 2013-04-17 16:48:13 +02:00 committed by Mike Hearn
parent 83136a2b02
commit 37290fe882

View File

@ -225,6 +225,11 @@ public class TransactionConfidence implements Serializable {
if (confidenceType == this.confidenceType)
return;
this.confidenceType = confidenceType;
if (confidenceType == ConfidenceType.PENDING) {
depth = 0;
appearedAtChainHeight = -1;
workDone = BigInteger.ZERO;
}
}
runListeners();
}