Skip to content

Commit f5d1710

Browse files
author
colinlyguo
committed
tweaks
1 parent 9fe1bb8 commit f5d1710

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/tx_pool.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func (pool *TxPool) loop() {
431431
if time.Since(pool.beats[addr]) > pool.config.Lifetime {
432432
list := pool.queue[addr].Flatten()
433433
for _, tx := range list {
434-
log.Trace("Evicting transaction due to timeout", "account", addr.Hex(), "tx_hash", tx.Hash().Hex(), "lifetime_sec", time.Since(pool.beats[addr]).Seconds(), "lifetime_limit_sec", pool.config.Lifetime.Seconds())
434+
log.Trace("Evicting transaction due to timeout", "account", addr.Hex(), "hash", tx.Hash().Hex(), "lifetime sec", time.Since(pool.beats[addr]).Seconds(), "lifetime limit sec", pool.config.Lifetime.Seconds())
435435
pool.removeTx(tx.Hash(), true)
436436
}
437437
queuedEvictionMeter.Mark(int64(len(list)))
@@ -866,7 +866,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
866866
pool.priced.Put(tx, isLocal)
867867
pool.journalTx(from, tx)
868868
pool.queueTxEvent(tx)
869-
log.Trace("Transaction added to pending pool", "hash", hash.Hex(), "from", from.Hex(), "to", tx.To().Hex())
869+
log.Trace("Pooled new executable transaction", "hash", hash.Hex(), "from", from.Hex(), "to", tx.To().Hex())
870870

871871
// Successful promotion, bump the heartbeat
872872
pool.beats[from] = time.Now()
@@ -888,7 +888,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
888888
}
889889
pool.journalTx(from, tx)
890890

891-
log.Trace("Transaction added to future queue", "hash", hash.Hex(), "from", from.Hex(), "to", tx.To().Hex())
891+
log.Trace("Pooled new future transaction", "hash", hash.Hex(), "from", from.Hex(), "to", tx.To().Hex())
892892
return replaced, nil
893893
}
894894

@@ -1773,7 +1773,7 @@ func (pool *TxPool) calculateTxsLifecycle(txs types.Transactions, t time.Time) {
17731773
if tx.Time().Before(t) {
17741774
txLifecycle := t.Sub(tx.Time())
17751775
if txLifecycle >= time.Minute*30 {
1776-
log.Debug("Transaction lifecycle exceeds 30 minutes", "hash", tx.Hash().Hex(), "duration_seconds", txLifecycle.Seconds())
1776+
log.Debug("Transaction lifecycle exceeds 30 minutes", "hash", tx.Hash().Hex(), "duration seconds", txLifecycle.Seconds())
17771777
}
17781778
txLifecycleTimer.Update(txLifecycle)
17791779
}

0 commit comments

Comments
 (0)