Skip to content

Commit

Permalink
feat(miner): update payload building (ethereum#57)
Browse files Browse the repository at this point in the history
* feat(miner): update payload building

* chore: update workflow

* chore: update workflow
  • Loading branch information
davidtaikocha authored Apr 27, 2023
1 parent 6118f4a commit f148090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions miner/payload_building.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func (w *worker) buildPayload(args *BuildPayloadArgs) (*Payload, error) {
for {
select {
case <-timer.C:
// CHANGE(taiko): do not update payload.
if w.chainConfig.Taiko {
continue
}
start := time.Now()
block, fees, err := w.getSealingBlock(args.Parent, args.Timestamp, args.FeeRecipient, args.Random, args.Withdrawals, false)
if err == nil {
Expand Down
2 changes: 1 addition & 1 deletion miner/taiko_payload_building.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (payload *Payload) SetFullBlock(block *types.Block, fees *big.Int) {
payload.lock.Lock()
defer payload.lock.Unlock()

payload.stop <- struct{}{}
go func() { payload.stop <- struct{}{} }()

payload.full = block
payload.fullFees = fees
Expand Down

0 comments on commit f148090

Please sign in to comment.