mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
fix: update l1 db entry for curie transition block (#835)
This commit is contained in:
parent
4e3bf2f58e
commit
c00352023b
2 changed files with 12 additions and 6 deletions
|
|
@ -404,6 +404,11 @@ func (w *worker) startNewPipeline(timestamp int64) {
|
||||||
if w.chainConfig.CurieBlock != nil && w.chainConfig.CurieBlock.Cmp(header.Number) == 0 {
|
if w.chainConfig.CurieBlock != nil && w.chainConfig.CurieBlock.Cmp(header.Number) == 0 {
|
||||||
misc.ApplyCurieHardFork(parentState)
|
misc.ApplyCurieHardFork(parentState)
|
||||||
|
|
||||||
|
var nextL1MsgIndex uint64
|
||||||
|
if dbVal := rawdb.ReadFirstQueueIndexNotInL2Block(w.eth.ChainDb(), header.ParentHash); dbVal != nil {
|
||||||
|
nextL1MsgIndex = *dbVal
|
||||||
|
}
|
||||||
|
|
||||||
// zkEVM requirement: Curie transition block contains 0 transactions, bypass pipeline.
|
// zkEVM requirement: Curie transition block contains 0 transactions, bypass pipeline.
|
||||||
err = w.commit(&pipeline.Result{
|
err = w.commit(&pipeline.Result{
|
||||||
// Note: Signer nodes will not store CCC results for empty blocks in their database.
|
// Note: Signer nodes will not store CCC results for empty blocks in their database.
|
||||||
|
|
@ -411,11 +416,12 @@ func (w *worker) startNewPipeline(timestamp int64) {
|
||||||
// nodes will still store CCC results.
|
// nodes will still store CCC results.
|
||||||
Rows: &types.RowConsumption{},
|
Rows: &types.RowConsumption{},
|
||||||
FinalBlock: &pipeline.BlockCandidate{
|
FinalBlock: &pipeline.BlockCandidate{
|
||||||
Header: header,
|
Header: header,
|
||||||
State: parentState,
|
State: parentState,
|
||||||
Txs: types.Transactions{},
|
Txs: types.Transactions{},
|
||||||
Receipts: types.Receipts{},
|
Receipts: types.Receipts{},
|
||||||
CoalescedLogs: []*types.Log{},
|
CoalescedLogs: []*types.Log{},
|
||||||
|
NextL1MsgIndex: nextL1MsgIndex,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 5 // Major version component of the current release
|
VersionMajor = 5 // Major version component of the current release
|
||||||
VersionMinor = 4 // Minor version component of the current release
|
VersionMinor = 4 // Minor version component of the current release
|
||||||
VersionPatch = 5 // Patch version component of the current release
|
VersionPatch = 6 // Patch version component of the current release
|
||||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue