@@ -959,13 +959,12 @@ func (w *worker) commitTransactions(env *environment, txs *types.TransactionsByP
959
959
960
960
// generateParams wraps various of settings for generating sealing task.
961
961
type generateParams struct {
962
- timestamp uint64 // The timstamp for sealing task
962
+ timestamp uint64 // The timestamp for sealing task
963
963
forceTime bool // Flag whether the given timestamp is immutable or not
964
964
parentHash common.Hash // Parent block hash, empty means the latest chain head
965
965
coinbase common.Address // The fee recipient address for including transaction
966
966
random common.Hash // The randomness generated by beacon chain, empty before the merge
967
967
noUncle bool // Flag whether the uncle block inclusion is allowed
968
- noExtra bool // Flag whether the extra field assignment is allowed
969
968
noTxs bool // Flag whether an empty block without any transaction is expected
970
969
}
971
970
@@ -1001,8 +1000,8 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) {
1001
1000
Time : timestamp ,
1002
1001
Coinbase : genParams .coinbase ,
1003
1002
}
1004
- // Set the extra field if it's allowed .
1005
- if ! genParams . noExtra && len (w .extra ) != 0 {
1003
+ // Set the extra field.
1004
+ if len (w .extra ) != 0 {
1006
1005
header .Extra = w .extra
1007
1006
}
1008
1007
// Set the randomness field from the beacon chain if it's available.
@@ -1225,7 +1224,6 @@ func (w *worker) getSealingBlock(parent common.Hash, timestamp uint64, coinbase
1225
1224
coinbase : coinbase ,
1226
1225
random : random ,
1227
1226
noUncle : true ,
1228
- noExtra : true ,
1229
1227
noTxs : noTxs ,
1230
1228
},
1231
1229
result : make (chan * newPayloadResult , 1 ),
0 commit comments