core: recover state when beacon sets canonical head if it's missing (#24613)
* core: recover the state in SetChainHead if the head state is missing * core: disable test logging * core: address comment from martin * core: improve log level in case state is recovered * core, eth, les, light: rename SetChainHead to SetCanonical
This commit is contained in:
1 parent
11b56ace2a
commit
7f6f01d46f
7 files changed
+102
-14
No files matched your search
+1
-1
@@ -389,7 +389,7 @@ func (lc *LightChain) InsertHeader(header *types.Header) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (lc *LightChain) SetChainHead(header *types.Header) error {
|
||||
func (lc *LightChain) SetCanonical(header *types.Header) error {
|
||||
lc.chainmu.Lock()
|
||||
defer lc.chainmu.Unlock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user