fix(wokrer): fix an issue in sealBlockWith (#240)

This commit is contained in:
David 2024-05-08 16:49:38 +08:00 committed by GitHub
parent 4f368792dc
commit 02c6ee9672
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ func (w *worker) sealBlockWith(
return nil, err
}
}
sender, err := types.LatestSignerForChainID(tx.ChainId()).Sender(tx)
sender, err := types.LatestSignerForChainID(w.chainConfig.ChainID).Sender(tx)
if err != nil {
log.Debug("Skip an invalid proposed transaction", "hash", tx.Hash(), "reason", err)
continue