cpuminer: Remove unused MiningAddrs from Config.

This removes the unused MiningAddrs field from the cpuminer Config
struct as the cpuminer no longer requires direct access to them after it
was converted to make use of the background template generator.
This commit is contained in:
Dave Collins 2021-03-11 14:57:16 -06:00
parent f6ea97a42d
commit 0cb90f08de
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
2 changed files with 0 additions and 5 deletions

View File

@ -89,10 +89,6 @@ type Config struct {
// generate block templates that the miner will attempt to solve.
BgBlkTmplGenerator *mining.BgBlkTmplGenerator
// MiningAddrs is a list of payment addresses to use for the generated
// blocks. Each generated block will randomly choose one of them.
MiningAddrs []dcrutil.Address
// ProcessBlock defines the function to call with any solved blocks.
// It typically must run the provided block through the same set of
// rules and handling as any other block coming from the network.

View File

@ -3585,7 +3585,6 @@ func newServer(ctx context.Context, listenAddrs []string, db database.DB, chainP
ChainParams: s.chainParams,
PermitConnectionlessMining: cfg.SimNet || cfg.RegNet,
BgBlkTmplGenerator: s.bg,
MiningAddrs: cfg.miningAddrs,
ProcessBlock: s.syncManager.ProcessBlock,
ConnectedCount: s.ConnectedCount,
IsCurrent: s.syncManager.IsCurrent,