mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
feat(txpool): add more logs to runReorg (#1019)
* feat(txpool): add more logs to `runReorg` * chore: auto version bump [bot] * improve * chore: auto version bump [bot] --------- Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
This commit is contained in:
parent
e9259b783f
commit
8f8ef30931
2 changed files with 10 additions and 1 deletions
|
|
@ -94,6 +94,8 @@ var (
|
|||
var (
|
||||
evictionInterval = time.Minute // Time interval to check for evictable transactions
|
||||
statsReportInterval = 8 * time.Second // Time interval to report transaction pool stats
|
||||
|
||||
dumpReorgTxHashThreshold = 100 // Number of transaction hashse to dump when runReorg
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -1362,6 +1364,13 @@ func (pool *TxPool) runReorg(done chan struct{}, reset *txpoolResetRequest, dirt
|
|||
txs = append(txs, set.Flatten()...)
|
||||
}
|
||||
pool.txFeed.Send(NewTxsEvent{txs})
|
||||
|
||||
log.Debug("runReorg", "len(txs)", len(txs))
|
||||
if len(txs) > dumpReorgTxHashThreshold {
|
||||
for _, txs := range txs {
|
||||
log.Debug("dumping runReorg tx hashes", "txHash", txs.Hash().Hex())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import (
|
|||
const (
|
||||
VersionMajor = 5 // Major version component of the current release
|
||||
VersionMinor = 7 // Minor version component of the current release
|
||||
VersionPatch = 6 // Patch version component of the current release
|
||||
VersionPatch = 7 // Patch version component of the current release
|
||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue