Skip to content

Commit

Permalink
fix the issue for pow nonce during genesis select
Browse files Browse the repository at this point in the history
  • Loading branch information
simonzg committed Jan 9, 2024
1 parent 5281609 commit 90407f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/seeker.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func (s *Seeker) Err() error {
}

func (s *Seeker) LastPowNonce() (uint64, error) {
if s.chain == nil {
return uint64(1001) /*Genesis Nonce*/, nil
}
bestK, err := s.chain.BestKBlock()
if err != nil {
return uint64(0), err
Expand Down

0 comments on commit 90407f2

Please sign in to comment.