mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 14:07:14 +00:00
Fix a buggy log message and make the comment clearer.
This commit is contained in:
@@ -1868,8 +1868,12 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
|||||||
|
|
||||||
if (result == TransactionInput.ConnectionResult.ALREADY_SPENT) {
|
if (result == TransactionInput.ConnectionResult.ALREADY_SPENT) {
|
||||||
if (fromChain) {
|
if (fromChain) {
|
||||||
// Double spend from chain: this will be handled later by checkForDoubleSpendAgainstPending.
|
// Can be:
|
||||||
log.warn("updateForSpends: saw double spend from chain, handling later.");
|
// (1) We already marked this output as spent when we saw the pending transaction (most likely).
|
||||||
|
// Now it's being confirmed of course, we cannot mark it as spent again.
|
||||||
|
// (2) A double spend from chain: this will be handled later by checkForDoubleSpendAgainstPending.
|
||||||
|
//
|
||||||
|
// In any case, nothing to do here.
|
||||||
} else {
|
} else {
|
||||||
// We saw two pending transactions that double spend each other. We don't know which will win.
|
// We saw two pending transactions that double spend each other. We don't know which will win.
|
||||||
// This can happen in the case of bad network nodes that mutate transactions. Do a hex dump
|
// This can happen in the case of bad network nodes that mutate transactions. Do a hex dump
|
||||||
|
|||||||
Reference in New Issue
Block a user