Update registry of ports
This commit is contained in:
parent
2b85054e03
commit
cb7a90bcc5
@ -31,7 +31,8 @@ type PortInfoSlice []*PortInfo
|
|||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Coin struct {
|
Coin struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Label string `json:"label"`
|
||||||
}
|
}
|
||||||
Ports map[string]uint16 `json:"ports"`
|
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)
|
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 {
|
for k, v := range v.Ports {
|
||||||
if v == 0 {
|
if v == 0 {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
| coin | blockbook internal port | blockbook public port | backend rpc port | backend service ports (zmq) |
|
| coin | blockbook internal port | blockbook public port | backend rpc port | backend service ports (zmq) |
|
||||||
|--------------------------|-------------------------|-----------------------|------------------|-----------------------------|
|
|--------------------------|-------------------------|-----------------------|------------------|-----------------------------|
|
||||||
| Bitcoin | 9030 | 9130 | 8030 | 38330 |
|
| Bitcoin | 9030 | 9130 | 8030 | 38330 |
|
||||||
| Bcash | 9031 | 9131 | 8031 | 38331 |
|
| Bitcoin Cash | 9031 | 9131 | 8031 | 38331 |
|
||||||
| Zcash | 9032 | 9132 | 8032 | 38332 |
|
| Zcash | 9032 | 9132 | 8032 | 38332 |
|
||||||
| Dash | 9033 | 9133 | 8033 | 38333 |
|
| Dash | 9033 | 9133 | 8033 | 38333 |
|
||||||
| Litecoin | 9034 | 9134 | 8034 | 38334 |
|
| Litecoin | 9034 | 9134 | 8034 | 38334 |
|
||||||
| Bgold | 9035 | 9135 | 8035 | 38335 |
|
| Bitcoin Gold | 9035 | 9135 | 8035 | 38335 |
|
||||||
| Ethereum | 9036 | 9136 | 8036 | 38336 p2p, 8136 http |
|
| Ethereum | 9036 | 9136 | 8036 | 8136 http, 38336 p2p |
|
||||||
| Ethereum Classic | 9037 | 9137 | 8037 | |
|
| Ethereum Classic | 9037 | 9137 | 8037 | |
|
||||||
| Dogecoin | 9038 | 9138 | 8038 | 38338 |
|
| Dogecoin | 9038 | 9138 | 8038 | 38338 |
|
||||||
| Namecoin | 9039 | 9139 | 8039 | 38339 |
|
| Namecoin | 9039 | 9139 | 8039 | 38339 |
|
||||||
@ -18,8 +18,9 @@
|
|||||||
| Myriad | 9043 | 9143 | 8043 | 38343 |
|
| Myriad | 9043 | 9143 | 8043 | 38343 |
|
||||||
| GameCredits | 9044 | 9144 | 8044 | 38344 |
|
| GameCredits | 9044 | 9144 | 8044 | 38344 |
|
||||||
| Groestlcoin | 9045 | 9145 | 8045 | 38345 |
|
| Groestlcoin | 9045 | 9145 | 8045 | 38345 |
|
||||||
| Testnet | 19030 | 19130 | 18030 | 48330 |
|
| Bitcoin Cash SV | 9046 | 9146 | 8046 | 38346 |
|
||||||
| Bcash Testnet | 19031 | 19131 | 18031 | 48331 |
|
| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 |
|
||||||
|
| Bitcoin Cash Testnet | 19031 | 19131 | 18031 | 48331 |
|
||||||
| Zcash Testnet | 19032 | 19132 | 18032 | 48332 |
|
| Zcash Testnet | 19032 | 19132 | 18032 | 48332 |
|
||||||
| Dash Testnet | 19033 | 19133 | 18033 | 48333 |
|
| Dash Testnet | 19033 | 19133 | 18033 | 48333 |
|
||||||
| Litecoin Testnet | 19034 | 19134 | 18034 | 48334 |
|
| Litecoin Testnet | 19034 | 19134 | 18034 | 48334 |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user