Skip to content

Commit

Permalink
special handling for genesis block not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie committed Apr 10, 2023
1 parent 270b507 commit e8e036c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions state/factory/workingset.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,6 @@ func (ws *workingSet) validateNonce(ctx context.Context, blk *block.Block) error
}
appendActionIndex(accountNonceMap, caller.String(), selp.Nonce())
}

// Special handling for genesis block
if blk.Height() == 0 {
return nil
}
return ws.checkNonceContinuity(ctx, accountNonceMap)
}

Expand All @@ -358,11 +353,6 @@ func (ws *workingSet) validateNonce2(ctx context.Context, blk *block.Block) erro
}
accountNonceMap[srcAddr] = append(accountNonceMap[srcAddr], selp.Nonce())
}

// Special handling for genesis block
if blk.Height() == 0 {
return nil
}
return ws.checkNonceContinuity(ctx, accountNonceMap)
}

Expand Down

0 comments on commit e8e036c

Please sign in to comment.