mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 23:03:04 +00:00
Transaction: Clear depth/work data when setting confidence type to pending.
This commit is contained in:
parent
83136a2b02
commit
37290fe882
@ -225,6 +225,11 @@ public class TransactionConfidence implements Serializable {
|
|||||||
if (confidenceType == this.confidenceType)
|
if (confidenceType == this.confidenceType)
|
||||||
return;
|
return;
|
||||||
this.confidenceType = confidenceType;
|
this.confidenceType = confidenceType;
|
||||||
|
if (confidenceType == ConfidenceType.PENDING) {
|
||||||
|
depth = 0;
|
||||||
|
appearedAtChainHeight = -1;
|
||||||
|
workDone = BigInteger.ZERO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
runListeners();
|
runListeners();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user