Skip to content

Commit

Permalink
bugfix: Nodes can run without setting the primary and secondary coinbase
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Oct 2, 2024
1 parent 3624f0f commit 9013442
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,14 @@ func (w *worker) GeneratePendingHeader(block *types.WorkObject, fill bool, txs t
return nil, fmt.Errorf("parent order not set")
}

if (w.config.PrimaryCoinbase == common.Address{}) {
return nil, fmt.Errorf("primary coinbase is not set")
}

if (w.config.SecondaryCoinbase == common.Address{}) {
return nil, fmt.Errorf("secondary coinbase is not set")
}

quaiCoinbase, err := work.wo.QuaiCoinbase()
if err != nil {
return nil, err
Expand Down

0 comments on commit 9013442

Please sign in to comment.