Browse Source

Add mainnet, testnet and regtest peers for BTG (#500)

patch-2
wilsonmeier 6 years ago
committed by Neil
parent
commit
068e230616
  1. 15
      lib/coins.py

15
lib/coins.py

@ -454,6 +454,12 @@ class BitcoinGold(EquihashMixin, BitcoinMixin, Coin):
TX_PER_BLOCK = 50 TX_PER_BLOCK = 50
REORG_LIMIT = 1000 REORG_LIMIT = 1000
RPC_PORT = 8338 RPC_PORT = 8338
PEERS = [
'electrumx-eu.bitcoingold.org s50002 t50001',
'electrumx-us.bitcoingold.org s50002 t50001',
'electrumx-eu.btcgpu.org s50002 t50001',
'electrumx-us.btcgpu.org s50002 t50001'
]
@classmethod @classmethod
def header_hash(cls, header): def header_hash(cls, header):
@ -496,6 +502,14 @@ class BitcoinGoldTestnet(BitcoinGold):
RPC_PORT = 18338 RPC_PORT = 18338
GENESIS_HASH = ('00000000e0781ebe24b91eedc293adfe' GENESIS_HASH = ('00000000e0781ebe24b91eedc293adfe'
'a2f557b53ec379e78959de3853e6f9f6') 'a2f557b53ec379e78959de3853e6f9f6')
PEERS = [
'test-node1.bitcoingold.org s50002',
'test-node2.bitcoingold.org s50002',
'test-node3.bitcoingold.org s50002',
'test-node1.btcgpu.org s50002',
'test-node2.btcgpu.org s50002',
'test-node3.btcgpu.org s50002'
]
class BitcoinGoldRegtest(BitcoinGold): class BitcoinGoldRegtest(BitcoinGold):
@ -512,6 +526,7 @@ class BitcoinGoldRegtest(BitcoinGold):
RPC_PORT = 18444 RPC_PORT = 18444
GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328' GENESIS_HASH = ('0f9188f13cb7b2c71f2a335e3a4fc328'
'bf5beb436012afca590b1a11466e2206') 'bf5beb436012afca590b1a11466e2206')
PEERS = []
class Emercoin(Coin): class Emercoin(Coin):

Loading…
Cancel
Save