mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
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:
parent
488d987fc4
commit
f54c4255e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue