From f54c4255e3c54495361268bb99d64f55cc14f79c Mon Sep 17 00:00:00 2001 From: forkfury Date: Thu, 13 Nov 2025 11:23:39 +0100 Subject: [PATCH] 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. --- miner/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/miner.go b/miner/miner.go index 810cc20a6c..cf433c4302 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -65,7 +65,7 @@ var DefaultConfig = Config{ // Miner is the main object which takes care of submitting new work to consensus // engine and gathering the sealing result. 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 chainConfig *params.ChainConfig engine consensus.Engine