Skip to content

Commit

Permalink
consensus/parlia: fix var assign
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Aug 5, 2024
1 parent 11c111f commit a8c8207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func (p *Parlia) snapshot(chain consensus.ChainHeaderReader, number uint64, hash
blockHash common.Hash
)
if number == 0 {
checkpoint := chain.GetHeaderByNumber(0)
checkpoint = chain.GetHeaderByNumber(0)
if checkpoint != nil {
blockHash = checkpoint.Hash()
}
Expand Down

0 comments on commit a8c8207

Please sign in to comment.