mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
fix: initialize pending block with an empty block (#1052)
This commit is contained in:
parent
c0094ee0b4
commit
7ff93ca224
2 changed files with 5 additions and 1 deletions
|
|
@ -507,6 +507,10 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
|
|||
reorging: reorging,
|
||||
reorgReason: reorgReason,
|
||||
}
|
||||
|
||||
// initiliaze pending block with an empty block to make sure we always have
|
||||
// a pending block to serve RPC requests
|
||||
w.updateSnapshot()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = 20 // Patch version component of the current release
|
||||
VersionPatch = 21 // Patch version component of the current release
|
||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue