fix: activate 4 DEAD audit items - cancel token, backup pools UI, payment_id to Stratum, remove minimize_to_tray

This commit is contained in:
drjones
2026-05-30 12:14:34 -07:00
parent d0bcf33767
commit 1afd319cd4
6 changed files with 187 additions and 32 deletions

View File

@@ -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",
}