feat(miner): change invalid transaction log level to DEBUG (#224)

This commit is contained in:
David 2024-05-04 21:55:01 +08:00 committed by GitHub
parent 7e1b8b65a3
commit 286ffe2cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,14 +179,14 @@ func (w *worker) sealBlockWith(
}
sender, err := types.LatestSignerForChainID(tx.ChainId()).Sender(tx)
if err != nil {
log.Info("Skip an invalid proposed transaction", "hash", tx.Hash(), "reason", err)
log.Debug("Skip an invalid proposed transaction", "hash", tx.Hash(), "reason", err)
continue
}
env.state.Prepare(rules, sender, blkMeta.Beneficiary, tx.To(), vm.ActivePrecompiles(rules), tx.AccessList())
env.state.SetTxContext(tx.Hash(), env.tcount)
if _, err := w.commitTransaction(env, tx); err != nil {
log.Info("Skip an invalid proposed transaction", "hash", tx.Hash(), "reason", err)
log.Debug("Skip an invalid proposed transaction", "hash", tx.Hash(), "reason", err)
continue
}
env.tcount++