From 21f151078478ad3adbaf24ebcb794a9cfab077e2 Mon Sep 17 00:00:00 2001 From: Gert-Jaap Glasbergen Date: Wed, 3 Feb 2021 22:12:36 +0100 Subject: [PATCH] Switch P2Pool to use p2p-usa.xyz --- networks/networks.go | 4 ++-- pools/p2pool.go | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/networks/networks.go b/networks/networks.go index 79cce172..12880633 100644 --- a/networks/networks.go +++ b/networks/networks.go @@ -29,8 +29,8 @@ func SetNetwork(blockHeight int64, testnet bool) { Base58P2SHVersion: 5, InsightURL: "https://insight.vertcoin.org/", Bech32Prefix: "vtc", - P2ProxyStratum: "stratum+tcp://p2proxy.vertcoin.org:9172", - P2ProxyURL: "http://p2proxy.vertcoin.org:9172/", + P2ProxyStratum: "stratum+tcp://p2p-usa.xyz:9171", + P2ProxyURL: "http://p2p-usa.xyz:9171/", WalletDB: "wallet-testnet.db", } } diff --git a/pools/p2pool.go b/pools/p2pool.go index 5326841d..24cd8256 100644 --- a/pools/p2pool.go +++ b/pools/p2pool.go @@ -30,7 +30,8 @@ func (p *P2Pool) GetPendingPayout() uint64 { logging.Warnf("Unable to fetch p2pool payouts: %s", err.Error()) p.LastPayout = 0 } - vtc, ok := jsonPayload[p.Address].(float64) + address := p.Address + vtc, ok := jsonPayload[address].(float64) if !ok { p.LastFetchedPayout = time.Now() p.LastPayout = 0 @@ -63,5 +64,5 @@ func (p *P2Pool) GetName() string { } func (p *P2Pool) GetFee() float64 { - return 0 + return 1.0 }