|
8 | 8 | "github.com/scroll-tech/da-codec/encoding" |
9 | 9 | "github.com/scroll-tech/go-ethereum/common" |
10 | 10 | "github.com/scroll-tech/go-ethereum/crypto" |
11 | | - "github.com/scroll-tech/go-ethereum/log" |
12 | 11 | ) |
13 | 12 |
|
14 | 13 | // ChunkMetrics indicates the metrics for proposing a chunk. |
@@ -141,25 +140,6 @@ func encodeBatchHeaderValidium(b *encoding.Batch, codecVersion encoding.CodecVer |
141 | 140 | commitment := lastBlock.Header.Hash() |
142 | 141 | stateRoot := b.StateRoot() |
143 | 142 |
|
144 | | - // Temporary workaround for the wrong genesis state root configuration issue. |
145 | | - if lastBlock.Header.Number.Uint64() == 0 { |
146 | | - if commitment == common.HexToHash("0x76a8e1359fe1a51ec3917ca98dec95ba005f1a73bcdbc2c7f87c7683e828fbb1") && stateRoot == common.HexToHash("0x08d535cc60f40af5dd3b31e0998d7567c2d568b224bed2ba26070aeb078d1339") { |
147 | | - // cloak-xen/sepolia |
148 | | - stateRoot = common.HexToHash("0x0711f02d6f85b0597c4705298e01ee27159fdd8bd8bdeda670ae8b9073091246") |
149 | | - } else if commitment == common.HexToHash("0x8005a02271085eaded2565f3e252013cd9d3cd0a4775d89f9ba4224289671276") && stateRoot == common.HexToHash("0x08d535cc60f40af5dd3b31e0998d7567c2d568b224bed2ba26070aeb078d1339") { |
150 | | - // cloak-xen/mainnet |
151 | | - stateRoot = common.HexToHash("0x8da1aaf41660ddf7870ab5ff4f6a3ab4b2e652568d341ede87ada56aad5fb097") |
152 | | - } else if commitment == common.HexToHash("0xa7e50dfc812039410c2009c74cdcb0c0797aa5485dec062985eaa43b17d333ea") && stateRoot == common.HexToHash("0x08d535cc60f40af5dd3b31e0998d7567c2d568b224bed2ba26070aeb078d1339") { |
153 | | - // cloak-etherfi/sepolia |
154 | | - stateRoot = common.HexToHash("0x7b44ea23770dda8810801779eb6847d56be0399e35de7c56465ccf8b7578ddf6") |
155 | | - } else if commitment == common.HexToHash("0xeccf4fab24f8b5dd3b72667c6bf5e28b17ccffdea01e3e5c08f393edaa9e7657") && stateRoot == common.HexToHash("0x08d535cc60f40af5dd3b31e0998d7567c2d568b224bed2ba26070aeb078d1339") { |
156 | | - // cloak-shiga/sepolia |
157 | | - stateRoot = common.HexToHash("0x05973227854ac82c22f164ed3d4510b7df516a0eecdfd9bed5f2446efc9994b9") |
158 | | - } |
159 | | - |
160 | | - log.Warn("Using genesis state root", "stateRoot", stateRoot.Hex()) |
161 | | - } |
162 | | - |
163 | 143 | // Batch header field sizes |
164 | 144 | const ( |
165 | 145 | versionSize = 1 |
@@ -188,7 +168,7 @@ func encodeBatchHeaderValidium(b *encoding.Batch, codecVersion encoding.CodecVer |
188 | 168 | var version uint8 |
189 | 169 | if codecVersion == encoding.CodecV8 || codecVersion == encoding.CodecV9 || codecVersion == encoding.CodecV10 { |
190 | 170 | // Validium version line starts with v1, |
191 | | - // but rollup-relayer behavior follows v8. |
| 171 | + // but rollup-relayer behavior follows v10. |
192 | 172 | version = 1 |
193 | 173 | } else if codecVersion == encoding.CodecV0 { |
194 | 174 | // Special case for genesis batch |
|
0 commit comments