Skip to content

Commit

Permalink
Switch P2Pool to use p2p-usa.xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjaap committed Feb 3, 2021
1 parent 25bcd16 commit 21f1510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions networks/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
Expand Down
5 changes: 3 additions & 2 deletions pools/p2pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,5 +64,5 @@ func (p *P2Pool) GetName() string {
}

func (p *P2Pool) GetFee() float64 {
return 0
return 1.0
}

0 comments on commit 21f1510

Please sign in to comment.