mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: properly handle wrapped retryable errors (#1030)
* fix: properly handle wrapped retryable errors * chore: auto version bump [bot] --------- Co-authored-by: Péter Garamvölgyi <peter@scroll.io> Co-authored-by: Thegaram <Thegaram@users.noreply.github.com>
This commit is contained in:
parent
e426d4bffa
commit
51082b29c5
2 changed files with 3 additions and 2 deletions
|
|
@ -345,7 +345,8 @@ func (w *worker) mainLoop() {
|
|||
default:
|
||||
}
|
||||
|
||||
if _, isRetryable := err.(retryableCommitError); isRetryable {
|
||||
var retryableCommitError *retryableCommitError
|
||||
if errors.As(err, &retryableCommitError) {
|
||||
log.Warn("failed to commit to a block, retrying", "err", err)
|
||||
if _, err = w.tryCommitNewWork(time.Now(), w.current.header.ParentHash, w.current.reorgReason); err != nil {
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -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 = 12 // Patch version component of the current release
|
||||
VersionPatch = 13 // Patch version component of the current release
|
||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue