fix(miner): correct confMu comment to reflect all protected fields

Update confMu comment to accurately list all protected fields. The comment
now correctly refers to GasPrice (not GasTip) and includes the missing
Recommit field and prio addresses list that are also protected by this lock.
This commit is contained in:
forkfury 2025-11-13 11:23:39 +01:00 committed by GitHub
parent 488d987fc4
commit f54c4255e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ var DefaultConfig = Config{
// Miner is the main object which takes care of submitting new work to consensus // Miner is the main object which takes care of submitting new work to consensus
// engine and gathering the sealing result. // engine and gathering the sealing result.
type Miner struct { type Miner struct {
confMu sync.RWMutex // The lock used to protect the config fields: GasCeil, GasTip and Extradata confMu sync.RWMutex // Protects config fields (GasCeil, GasPrice used as min tip, ExtraData, Recommit) and prio addresses list
config *Config config *Config
chainConfig *params.ChainConfig chainConfig *params.ChainConfig
engine consensus.Engine engine consensus.Engine