Skip to content

Commit db80b47

Browse files
authored
fix(rollup-relayer): upgrade boundary message queue hash initialization (#1706)
1 parent daa1387 commit db80b47

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

common/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.5.33"
8+
var tag = "v4.5.34"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {

rollup/internal/controller/watcher/chunk_proposer.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,9 @@ func (p *ChunkProposer) proposeChunk() error {
268268
return fmt.Errorf("failed to get parent chunk: %w", err)
269269
}
270270

271+
// Currently rollup-relayer only supports >= v7 codec version, it checks the minimum codec version after start.
272+
// In EuclidV2 transition, empty PostL1MessageQueueHash will be naturally initialized to the first chunk's PrevL1MessageQueueHash.
271273
chunk.PrevL1MessageQueueHash = common.HexToHash(parentChunk.PostL1MessageQueueHash)
272-
273-
// previous chunk is not CodecV7, this means this is the first chunk of the fork.
274-
if encoding.CodecVersion(parentChunk.CodecVersion) < codecVersion {
275-
chunk.PrevL1MessageQueueHash = common.Hash{}
276-
}
277-
278274
chunk.PostL1MessageQueueHash = chunk.PrevL1MessageQueueHash
279275

280276
var previousPostL1MessageQueueHash common.Hash

0 commit comments

Comments
 (0)