fix: activate 4 DEAD audit items - cancel token, backup pools UI, payment_id to Stratum, remove minimize_to_tray
This commit is contained in:
@@ -247,6 +247,9 @@ func (h *WSHub) agentPoolConfig(agentID string) pool.Config {
|
||||
if poolCfg.Wallet == "" {
|
||||
poolCfg.Wallet = h.defaultPool.Wallet
|
||||
}
|
||||
// Always carry the payment ID from the server-wide default (agents don't
|
||||
// supply their own payment ID).
|
||||
poolCfg.PaymentID = h.defaultPool.PaymentID
|
||||
return poolCfg
|
||||
}
|
||||
|
||||
|
||||
@@ -102,11 +102,15 @@ type pendingShareResult struct {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Host string
|
||||
Port int
|
||||
UseTLS bool
|
||||
Wallet string
|
||||
Password string
|
||||
Host string
|
||||
Port int
|
||||
UseTLS bool
|
||||
Wallet string
|
||||
Password string
|
||||
// PaymentID is an optional Monero integrated-address payment ID.
|
||||
// When non-empty it is appended to the wallet login as "wallet.paymentID"
|
||||
// so the pool can credit payouts to the correct sub-account.
|
||||
PaymentID string
|
||||
}
|
||||
|
||||
func NewProxy(cfg *Config) *Proxy {
|
||||
@@ -267,9 +271,16 @@ func (p *Proxy) authenticate() error {
|
||||
p.loginRequestID = loginID
|
||||
p.mu.Unlock()
|
||||
|
||||
// Build the login wallet string. If a payment ID is configured, the pool
|
||||
// receives "wallet.paymentID" which routes payouts to the correct account.
|
||||
walletLogin := p.config.Wallet
|
||||
if p.config.PaymentID != "" {
|
||||
walletLogin = walletLogin + "." + p.config.PaymentID
|
||||
}
|
||||
|
||||
// Login request
|
||||
loginParams := []interface{}{
|
||||
p.config.Wallet,
|
||||
walletLogin,
|
||||
p.config.Password,
|
||||
"crypto-miner-server/1.0",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user