Skip to content

Commit

Permalink
debug: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Apr 22, 2024
1 parent 9fdda1f commit c39e300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ LOOP:
env.state.SetTxContext(tx.Hash(), env.tcount)

logs, err := w.commitTransaction(env, tx, bloomProcessors)
log.Info("commit tx result", "hash", tx.Hash(), "err", err)
switch {
case errors.Is(err, core.ErrNonceTooLow):
// New head notification data race between the transaction pool and miner, shift
Expand Down
3 changes: 2 additions & 1 deletion miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environ
return errors.New("no bundles in bundle pool")
}

log.Info("fill bundles and transactions", "bundles_count", len(bundles))
log.Info("fill bundles", "bundles_count", len(bundles))

txs, bundle, err := w.generateOrderedBundles(env, bundles)
if err != nil {
Expand Down Expand Up @@ -125,6 +125,7 @@ func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environ
return err
}
}
log.Info("fill transactions and bundles done", "total_txs_count", len(env.txs))
return nil
}

Expand Down

0 comments on commit c39e300

Please sign in to comment.