From 6094ec356dc4d5c6c5fecfa65f6c90d374ec4e0b Mon Sep 17 00:00:00 2001 From: maskpp Date: Sun, 5 May 2024 01:11:18 +0800 Subject: [PATCH] format taiko comment (#226) --- miner/worker.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index a706054853..5952c8ee2e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -925,15 +925,16 @@ func (w *worker) commitTransactions(env *environment, plainTxs, blobTxs *transac // generateParams wraps various of settings for generating sealing task. type generateParams struct { - timestamp uint64 // The timestamp for sealing task - forceTime bool // Flag whether the given timestamp is immutable or not - parentHash common.Hash // Parent block hash, empty means the latest chain head - coinbase common.Address // The fee recipient address for including transaction - random common.Hash // The randomness generated by beacon chain, empty before the merge - withdrawals types.Withdrawals // List of withdrawals to include in block. - beaconRoot *common.Hash // The beacon root (cancun field). - noTxs bool // Flag whether an empty block without any transaction is expected - baseFeePerGas *big.Int // CHANGE(taiko): The base fee per gas for the next block + timestamp uint64 // The timestamp for sealing task + forceTime bool // Flag whether the given timestamp is immutable or not + parentHash common.Hash // Parent block hash, empty means the latest chain head + coinbase common.Address // The fee recipient address for including transaction + random common.Hash // The randomness generated by beacon chain, empty before the merge + withdrawals types.Withdrawals // List of withdrawals to include in block. + beaconRoot *common.Hash // The beacon root (cancun field). + noTxs bool // Flag whether an empty block without any transaction is expected + // CHANGE(taiko): The base fee per gas for the next block + baseFeePerGas *big.Int } // prepareWork constructs the sealing task according to the given parameters,