Skip to content

Commit

Permalink
op-node: fix ChannelTimeoutGranite setting and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseguy committed Aug 12, 2024
1 parent dc6759b commit 5f2ce28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions op-node/chaincfg/chains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var sepoliaCfg = rollup.Config{
MaxSequencerDrift: 600,
SeqWindowSize: 3600,
ChannelTimeoutBedrock: 300,
ChannelTimeoutGranite: 0,
ChannelTimeoutGranite: 50,
L1ChainID: big.NewInt(11155111),
L2ChainID: big.NewInt(11155420),
BatchInboxAddress: common.HexToAddress("0xff00000000000000000000000000000011155420"),
Expand Down Expand Up @@ -129,7 +129,7 @@ var sepoliaDev0Cfg = rollup.Config{
MaxSequencerDrift: 600,
SeqWindowSize: 3600,
ChannelTimeoutBedrock: 300,
ChannelTimeoutGranite: 0,
ChannelTimeoutGranite: 50,
L1ChainID: big.NewInt(11155111),
L2ChainID: big.NewInt(11155421),
BatchInboxAddress: common.HexToAddress("0xff00000000000000000000000000000011155421"),
Expand Down
2 changes: 1 addition & 1 deletion op-node/rollup/superchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
cfg.ChannelTimeoutBedrock = *chConfig.ChannelTimeoutBedrock
}
if chConfig.ChannelTimeoutGranite != nil {
cfg.ChannelTimeoutBedrock = *chConfig.ChannelTimeoutGranite
cfg.ChannelTimeoutGranite = *chConfig.ChannelTimeoutGranite
}

if superChain.Config.ProtocolVersionsAddr != nil { // Set optional protocol versions address
Expand Down
2 changes: 1 addition & 1 deletion op-node/rollup/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func TestConfig_Check(t *testing.T) {
cfg.FjordTime = &genesis
cfg.GraniteTime = &genesis
},
expectedErr: ErrMissingChannelTimeoutBedrock,
expectedErr: ErrMissingChannelTimeoutGranite,
},
{
name: "SeqWindowSizeZero",
Expand Down

0 comments on commit 5f2ce28

Please sign in to comment.