Skip to content

Commit

Permalink
bugfix: Have to use current block to calculate the generate pending h…
Browse files Browse the repository at this point in the history
…eader
  • Loading branch information
gameofpointers committed Nov 1, 2024
1 parent 024fcff commit bd94284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (w *worker) asyncStateLoop() {
return
}
}
wo := w.hc.CurrentHeader()
wo := w.hc.CurrentBlock()
w.hc.headermu.Lock()
defer w.hc.headermu.Unlock()
header, err := w.GeneratePendingHeader(wo, true, nil, false)
Expand Down

0 comments on commit bd94284

Please sign in to comment.