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:
parent
83136a2b02
commit
37290fe882
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user