ZelCash - reuse Zcash integration

This commit is contained in:
TheTrunk 2019-05-06 09:52:18 +02:00 committed by Martin
parent 18bea50b69
commit da03baf83a
3 changed files with 72 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func init() {
BlockChainFactories["Qtum Testnet"] = qtum.NewQtumRPC
BlockChainFactories["NULS"] = nuls.NewNulsRPC
BlockChainFactories["VIPSTARCOIN"] = vipstarcoin.NewVIPSTARCOINRPC
BlockChainFactories["ZelCash"] = zec.NewZCashRPC
}
// GetCoinNameFromConfig gets coin name and coin shortcut from config file

View File

@ -0,0 +1,70 @@
{
"coin": {
"name": "ZelCash",
"shortcut": "ZEL",
"label": "ZelCash",
"alias": "zelcash"
},
"ports": {
"backend_rpc": 16124,
"backend_message_queue": 38368,
"blockbook_internal": 9068,
"blockbook_public": 9168
},
"ipc": {
"rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}",
"rpc_user": "rpc",
"rpc_pass": "rpc",
"rpc_timeout": 25,
"message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}"
},
"backend": {
"package_name": "backend-zelcash",
"package_revision": "satoshilabs-1",
"system_user": "zelcash",
"version": "3.1.1",
"binary_url": "https://github.com/zelcash/zelcash/releases/download/v3.1.1/ZelCash-Linux.tar.gz",
"verification_type": "sha256",
"verification_source": "513101f44f3f6d40182c108fd8bf5c7a0336022173abd13ca24758776b2ee0d3",
"extract_command": "tar -C backend --strip 1 -xf",
"exclude_files": [],
"exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/zelcashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid",
"logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log",
"postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/fetch-params",
"service_type": "forking",
"service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"",
"protect_memory": false,
"mainnet": true,
"server_config_file": "bitcoin_like.conf",
"client_config_file": "bitcoin_like_client.conf",
"additional_params": {
"addnode": [
"explorer.zel.cash",
"explorer2.zel.cash",
"explorer.zelcash.online",
"explorer-asia.zel.cash"
]
}
},
"blockbook": {
"package_name": "blockbook-zelcash",
"system_user": "blockbook-zelcash",
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
"explorer_url": "",
"additional_params": "",
"block_chain": {
"parse": true,
"mempool_workers": 4,
"mempool_sub_workers": 8,
"block_addresses_to_keep": 300,
"xpub_magic": 76067358,
"slip44": 19167,
"additional_params": {}
}
},
"meta": {
"package_maintainer": "Tadeas Kmenta",
"package_maintainer_email": "tadeas.kmenta@zel.cash"
}
}

View File

@ -31,6 +31,7 @@
| MonetaryUnit | 9057 | 9157 | 8057 | 38357 |
| Flo | 9066 | 9166 | 8066 | 38366 |
| Polis | 9067 | 9167 | 8067 | 38367 |
| ZelCash | 9068 | 9168 | 8068 | 38368 |
| Qtum | 9088 | 9188 | 8088 | 38388 |
| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 |
| Bitcoin Cash Testnet | 19031 | 19131 | 18031 | 48331 |