Skip to content

Commit

Permalink
Merge pull request #88 from testinprod-io/increase-max-fork-depth
Browse files Browse the repository at this point in the history
Increase maxForkDepth
  • Loading branch information
ImTei authored Jul 29, 2023
2 parents 692c33d + 5e21d6b commit fb498c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion turbo/engineapi/fork_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ import (
)

// the maximum point from the current head, past which side forks are not validated anymore.
const maxForkDepth = 32 // 32 slots is the duration of an epoch thus there cannot be side forks in PoS deeper than 32 blocks from head.
// Original value was 32 slots, which is the duration of an epoch thus there cannot be side forks in PoS deeper than 32 blocks from head.
// But in the case of OP chains, there can be more than 32 blocks fork. So it was set to an arbitrarily large value.
// TODO: Find the proper maxForkDepth value for OP Chains
const maxForkDepth = 320

type validatePayloadFunc func(kv.RwTx, *types.Header, *types.RawBody, uint64, []*types.Header, []*types.RawBody, *shards.Notifications) error

Expand Down

0 comments on commit fb498c8

Please sign in to comment.