From cb7a90bcc5db06e06b84e00f2b819829777a0d10 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 4 Jan 2019 13:46:30 +0100 Subject: [PATCH] Update registry of ports --- contrib/scripts/check-and-generate-port-registry.go | 9 +++++++-- docs/ports.md | 11 ++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/contrib/scripts/check-and-generate-port-registry.go b/contrib/scripts/check-and-generate-port-registry.go index 94e7c2c4..9e6039eb 100755 --- a/contrib/scripts/check-and-generate-port-registry.go +++ b/contrib/scripts/check-and-generate-port-registry.go @@ -31,7 +31,8 @@ type PortInfoSlice []*PortInfo type Config struct { Coin struct { - Name string `json:"name"` + Name string `json:"name"` + Label string `json:"label"` } Ports map[string]uint16 `json:"ports"` } @@ -154,7 +155,11 @@ func loadPortInfo(dir string) (PortInfoSlice, error) { return nil, fmt.Errorf("%s: json: %s", path, err) } - item := &PortInfo{CoinName: v.Coin.Name, BackendServicePorts: map[string]uint16{}} + name := v.Coin.Label + if len(name) == 0 { + name = v.Coin.Name + } + item := &PortInfo{CoinName: name, BackendServicePorts: map[string]uint16{}} for k, v := range v.Ports { if v == 0 { continue diff --git a/docs/ports.md b/docs/ports.md index 70605d5a..1e8eae6e 100644 --- a/docs/ports.md +++ b/docs/ports.md @@ -3,12 +3,12 @@ | coin | blockbook internal port | blockbook public port | backend rpc port | backend service ports (zmq) | |--------------------------|-------------------------|-----------------------|------------------|-----------------------------| | Bitcoin | 9030 | 9130 | 8030 | 38330 | -| Bcash | 9031 | 9131 | 8031 | 38331 | +| Bitcoin Cash | 9031 | 9131 | 8031 | 38331 | | Zcash | 9032 | 9132 | 8032 | 38332 | | Dash | 9033 | 9133 | 8033 | 38333 | | Litecoin | 9034 | 9134 | 8034 | 38334 | -| Bgold | 9035 | 9135 | 8035 | 38335 | -| Ethereum | 9036 | 9136 | 8036 | 38336 p2p, 8136 http | +| Bitcoin Gold | 9035 | 9135 | 8035 | 38335 | +| Ethereum | 9036 | 9136 | 8036 | 8136 http, 38336 p2p | | Ethereum Classic | 9037 | 9137 | 8037 | | | Dogecoin | 9038 | 9138 | 8038 | 38338 | | Namecoin | 9039 | 9139 | 8039 | 38339 | @@ -18,8 +18,9 @@ | Myriad | 9043 | 9143 | 8043 | 38343 | | GameCredits | 9044 | 9144 | 8044 | 38344 | | Groestlcoin | 9045 | 9145 | 8045 | 38345 | -| Testnet | 19030 | 19130 | 18030 | 48330 | -| Bcash Testnet | 19031 | 19131 | 18031 | 48331 | +| Bitcoin Cash SV | 9046 | 9146 | 8046 | 38346 | +| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 | +| Bitcoin Cash Testnet | 19031 | 19131 | 18031 | 48331 | | Zcash Testnet | 19032 | 19132 | 18032 | 48332 | | Dash Testnet | 19033 | 19133 | 18033 | 48333 | | Litecoin Testnet | 19034 | 19134 | 18034 | 48334 |