Skip to content

Commit bda2089

Browse files
authored
fix(txpool): tracing txn executed status (#1168)
* fix(txpool): tx journey executed status tracing * fix * bump version * tweak
1 parent 8a150b4 commit bda2089

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

core/tx_pool.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ func (pool *TxPool) loop() {
434434
if ev.Block != nil {
435435
pool.requestReset(head.Header(), ev.Block.Header())
436436
head = ev.Block
437+
for _, tx := range head.Transactions() {
438+
log.Debug("TX is included in a block", "hash", tx.Hash().Hex())
439+
}
437440
}
438441

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

1536-
for _, tx := range discarded {
1537-
log.Debug("TXPOOL_REORG: TX removed from old chain", "hash", tx.Hash().Hex())
1538-
}
1539-
1540-
for _, tx := range included {
1541-
log.Debug("TXPOOL_REORG: TX added in the chain", "hash", tx.Hash().Hex())
1539+
for _, tx := range reinject {
1540+
log.Debug("TX is removed from old chain due to reorg", "hash", tx.Hash().Hex())
15421541
}
1543-
15441542
}
15451543
}
15461544
}

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 8 // Minor version component of the current release
27-
VersionPatch = 37 // Patch version component of the current release
27+
VersionPatch = 38 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)