Sitelet https://github.com/ethereum-optimism/optimism/commit/6cf6cd17e86a41f93e4cdc211c065dd7bb3eea36
Skip to content

Commit 6cf6cd1

Browse files
authored
Fix typos in dastate.go (#12223)
1 parent ae47d36 commit 6cf6cd1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎op-alt-da/dastate.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type State struct {
5656
expiredCommitments []Commitment // commitments where the challenge/resolve period has expired but not finalized
5757
challenges []*Challenge // challenges ordered by L1 inclusion
5858
expiredChallenges []*Challenge // challenges ordered by L1 inclusion
59-
challengesMap map[string]*Challenge // challenges by seralized comm + block number for easy lookup
59+
challengesMap map[string]*Challenge // challenges by serialized comm + block number for easy lookup
6060
lastPrunedCommitment eth.L1BlockRef // the last commitment to be pruned
6161
cfg Config
6262
log log.Logger
@@ -146,9 +146,9 @@ func (s *State) NoCommitments() bool {
146146
return len(s.challenges) == 0 && len(s.expiredChallenges) == 0 && len(s.commitments) == 0 && len(s.expiredCommitments) == 0
147147
}
148148

149-
// ExpireCommitments moves commitments from the acive state map to the expired state map.
149+
// ExpireCommitments moves commitments from the active state map to the expired state map.
150150
// commitments are considered expired when the challenge window ends without a challenge, or when the resolve window ends without a resolution to the challenge.
151-
// This function processess commitments in order of inclusion until it finds a commitment which has not expired.
151+
// This function processes commitments in order of inclusion until it finds a commitment which has not expired.
152152
// If a commitment expires which did not resolve its challenge, it returns ErrReorgRequired to indicate that a L2 reorg should be performed.
153153
func (s *State) ExpireCommitments(origin eth.BlockID) error {
154154
var err error
@@ -182,8 +182,8 @@ func (s *State) ExpireCommitments(origin eth.BlockID) error {
182182
}
183183

184184
// ExpireChallenges moves challenges from the active state map to the expired state map.
185-
// challenges are considered expired when the oirgin is beyond the challenge's resolve window.
186-
// This function processess challenges in order of inclusion until it finds a commitment which has not expired.
185+
// challenges are considered expired when the origin is beyond the challenge's resolve window.
186+
// This function processes challenges in order of inclusion until it finds a commitment which has not expired.
187187
// This function must be called for every block because there is no contract event to expire challenges.
188188
func (s *State) ExpireChallenges(origin eth.BlockID) {
189189
for len(s.challenges) > 0 {

0 commit comments

Comments
 (0)