mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Add logging for output disconnection and reconnection.
This commit is contained in:
parent
92544e9d47
commit
626117bc29
@ -233,12 +233,20 @@ public class TransactionOutput extends ChildMessage implements Serializable {
|
|||||||
checkState(availableForSpending);
|
checkState(availableForSpending);
|
||||||
availableForSpending = false;
|
availableForSpending = false;
|
||||||
spentBy = input;
|
spentBy = input;
|
||||||
|
if (parentTransaction != null)
|
||||||
|
log.info("Marked {}:{} as spent by {}", parentTransaction.getHash(), getIndex(), input);
|
||||||
|
else
|
||||||
|
log.info("Marked floating output as spent by {}", input);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the spent pointer / availableForSpending flag to null.
|
* Resets the spent pointer / availableForSpending flag to null.
|
||||||
*/
|
*/
|
||||||
public void markAsUnspent() {
|
public void markAsUnspent() {
|
||||||
|
if (parentTransaction != null)
|
||||||
|
log.info("Un-marked {}:{} as spent by {}", parentTransaction.getHash(), getIndex(), spentBy);
|
||||||
|
else
|
||||||
|
log.info("Un-marked floating output as spent by {}", spentBy);
|
||||||
availableForSpending = true;
|
availableForSpending = true;
|
||||||
spentBy = null;
|
spentBy = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user