Skip to content

Commit

Permalink
add log info back for LeaseInLedgerError
Browse files Browse the repository at this point in the history
  • Loading branch information
iansuvak committed Nov 17, 2022
1 parent b6b079f commit 57e08ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/pools/transactionPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ func (pool *TransactionPool) recomputeBlockEvaluator(committedTxIds map[transact
case *ledgercore.LeaseInLedgerError:
asmStats.LeaseErrorCount++
stats.RemovedInvalidCount++
pool.log.Infof("Cannot re-add pending transaction to pool: %v", err)
case transactions.MinFeeError:
asmStats.MinFeeErrorCount++
stats.RemovedInvalidCount++
Expand Down
2 changes: 1 addition & 1 deletion ledger/ledgercore/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func MakeLeaseInLedgerError(txid transactions.Txid, lease Txlease) *LeaseInLedge
func (lile *LeaseInLedgerError) Error() string {
// format the lease as address.
addr := basics.Address(lile.lease.Lease)
return fmt.Sprintf("transaction %v using an overlapping lease %s", lile.txid, addr.String())
return fmt.Sprintf("transaction %v using an overlapping lease (%s, %s)", lile.txid, lile.lease.Sender.String(), addr.String())
}

// BlockInLedgerError is returned when a block cannot be added because it has already been done
Expand Down

0 comments on commit 57e08ac

Please sign in to comment.