You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.Warn("zmq is not configured; using RPC/longpoll-only mode", "hint", "set node.zmq_hashblock_addr/node.zmq_rawblock_addr in config.toml to enable ZMQ (legacy node.zmq_block_addr is read-only for migration)")
156
159
}
160
+
ifcfg.SafeMode {
161
+
applySafeModeProfile(cfg)
162
+
}
157
163
158
164
returnnil
159
165
}
166
+
167
+
funcapplySafeModeProfile(cfg*Config) {
168
+
ifcfg==nil {
169
+
return
170
+
}
171
+
cfg.SafeMode=true
172
+
173
+
// Conservative compatibility/safety defaults for troubleshooting and broad miner support.
174
+
cfg.CKPoolEmulate=true
175
+
cfg.StratumFastDecodeEnabled=false
176
+
cfg.StratumFastEncodeEnabled=false
177
+
cfg.StratumTCPReadBufferBytes=0
178
+
cfg.StratumTCPWriteBufferBytes=0
179
+
180
+
cfg.LogDebug=false
181
+
cfg.LogNetDebug=false
182
+
183
+
cfg.ShareRequireAuthorizedConnection=true
184
+
cfg.ShareCheckParamFormat=true
185
+
cfg.ShareCheckDuplicate=true
186
+
cfg.ShareRequireJobID=true
187
+
cfg.SubmitProcessInline=false
188
+
189
+
// Prefer widest miner compatibility over stricter policy checks.
0 commit comments