From 5b775277ef191998d38dc9eca08ddc56b9782f53 Mon Sep 17 00:00:00 2001 From: irrun Date: Mon, 1 Apr 2024 22:35:22 +0800 Subject: [PATCH] fix: bid profit --- miner/bidder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/bidder.go b/miner/bidder.go index 039ff8b366..b641d2d34c 100644 --- a/miner/bidder.go +++ b/miner/bidder.go @@ -217,7 +217,7 @@ func (b *Bidder) bid(work *environment) { BlockNumber: parent.Number.Uint64() + 1, ParentHash: parent.Hash(), GasUsed: work.header.GasUsed, - GasFee: work.profit, + GasFee: work.state.GetBalance(consensus.SystemAddress).ToBig(), Txs: txs, // TODO: decide builderFee according to realtime traffic and validator commission }