Skip to content

Commit

Permalink
bugfix: Not setting time on GetPendingHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Sep 13, 2023
1 parent cc944e5 commit b5da520
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ func (sl *Slice) poem(externS *big.Int, currentS *big.Int) bool {
// GetPendingHeader is used by the miner to request the current pending header
func (sl *Slice) GetPendingHeader() (*types.Header, error) {
if ph, exists := sl.readPhCache(sl.bestPhKey); exists {
ph.Header().SetTime(uint64(time.Now().Unix()))
return ph.Header(), nil
} else {
return nil, errors.New("empty pending header")
Expand Down

0 comments on commit b5da520

Please sign in to comment.