Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ func (pool *TxPool) loop() {
if ev.Block != nil {
pool.requestReset(head.Header(), ev.Block.Header())
head = ev.Block
for _, tx := range head.Transactions() {
log.Debug("tx added in the chain", "hash", tx.Hash().Hex())
}
}

// System shutdown.
Expand Down Expand Up @@ -1533,14 +1536,9 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
}
reinject = types.TxDifference(discarded, included)

for _, tx := range discarded {
log.Debug("TXPOOL_REORG: TX removed from old chain", "hash", tx.Hash().Hex())
}

for _, tx := range included {
log.Debug("TXPOOL_REORG: TX added in the chain", "hash", tx.Hash().Hex())
for _, tx := range reinject {
log.Debug("tx removed from old chain due to reorg", "hash", tx.Hash().Hex())
}

}
}
}
Expand Down
Loading