From eb8993d4bda30b8ba519cf5425bce9c6e76f774b Mon Sep 17 00:00:00 2001 From: Mateusz Morusiewicz <11313015+Ruteri@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:35:30 +0200 Subject: [PATCH] Base block profit on the proposer payment instead of balance difference (#24) --- miner/worker.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 75f69af77c15..fa4e8d935efb 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1165,8 +1165,6 @@ func (w *worker) generateWork(params *generateParams) (*types.Block, *big.Int, e } defer work.discard() - coinbaseBalanceBefore := work.state.GetBalance(validatorCoinbase) - if !params.noTxs { interrupt := new(int32) timer := time.AfterFunc(w.newpayloadTimeout, func() {