2018-07-24 08:16:09 -06:00
|
|
|
{
|
|
|
|
"coin": {
|
2019-01-28 05:34:43 -07:00
|
|
|
"name": "Bgold",
|
|
|
|
"shortcut": "BTG",
|
|
|
|
"label": "Bitcoin Gold",
|
|
|
|
"alias": "bgold"
|
2018-07-24 08:16:09 -06:00
|
|
|
},
|
|
|
|
"ports": {
|
2018-07-31 05:07:45 -06:00
|
|
|
"backend_rpc": 8035,
|
2018-07-24 08:16:09 -06:00
|
|
|
"backend_message_queue": 38335,
|
|
|
|
"blockbook_internal": 9035,
|
|
|
|
"blockbook_public": 9135
|
|
|
|
},
|
2018-07-27 02:46:53 -06:00
|
|
|
"ipc": {
|
2018-07-27 04:10:01 -06:00
|
|
|
"rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}",
|
2018-07-24 08:16:09 -06:00
|
|
|
"rpc_user": "rpc",
|
|
|
|
"rpc_pass": "rpc",
|
|
|
|
"rpc_timeout": 25,
|
2018-07-27 02:46:53 -06:00
|
|
|
"message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}"
|
2018-07-24 08:16:09 -06:00
|
|
|
},
|
|
|
|
"backend": {
|
|
|
|
"package_name": "backend-bgold",
|
|
|
|
"package_revision": "satoshilabs-1",
|
|
|
|
"system_user": "bgold",
|
2018-09-24 07:04:43 -06:00
|
|
|
"version": "0.15.2",
|
|
|
|
"binary_url": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.2/bitcoin-gold-0.15.2-x86_64-linux-gnu.tar.gz",
|
2018-07-24 08:16:09 -06:00
|
|
|
"verification_type": "gpg-sha256",
|
2018-09-24 07:04:43 -06:00
|
|
|
"verification_source": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.2/SHA256SUMS.asc",
|
2018-07-24 08:16:09 -06:00
|
|
|
"extract_command": "tar -C backend --strip 1 -xf",
|
|
|
|
"exclude_files": [
|
2019-01-28 05:34:43 -07:00
|
|
|
"bin/bitcoin-qt"
|
2018-07-24 08:16:09 -06:00
|
|
|
],
|
|
|
|
"exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bgoldd -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": "",
|
|
|
|
"service_type": "forking",
|
2018-07-31 02:30:11 -06:00
|
|
|
"service_additional_params_template": "",
|
2018-07-24 08:16:09 -06:00
|
|
|
"protect_memory": true,
|
|
|
|
"mainnet": true,
|
2018-10-12 04:12:27 -06:00
|
|
|
"server_config_file": "bitcoin_like.conf",
|
|
|
|
"client_config_file": "bitcoin_like_client.conf",
|
2018-07-24 08:16:09 -06:00
|
|
|
"additional_params": {
|
2019-01-28 05:34:43 -07:00
|
|
|
"addnode": [
|
|
|
|
"188.126.0.134",
|
|
|
|
"45.56.84.44",
|
|
|
|
"109.201.133.93:8338",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"188.120.223.153:8338",
|
|
|
|
"79.137.64.158:8338",
|
|
|
|
"78.193.221.106:8338",
|
|
|
|
"139.59.151.13:8338",
|
|
|
|
"76.16.12.81:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"43.207.67.209:8338",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"79.137.64.158:8338",
|
|
|
|
"78.193.221.106:8338",
|
|
|
|
"139.59.151.13:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"178.158.247.119:8338",
|
|
|
|
"109.201.133.93:8338",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"139.59.151.13:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"188.120.223.153:8338",
|
|
|
|
"178.158.247.119:8338",
|
|
|
|
"78.193.221.106:8338",
|
|
|
|
"79.137.64.158:8338",
|
|
|
|
"76.16.12.81:8338",
|
|
|
|
"176.12.32.153:8338",
|
|
|
|
"178.158.247.122:8338",
|
|
|
|
"81.37.147.185:8338",
|
|
|
|
"176.12.32.153:8338",
|
|
|
|
"79.137.64.158:8338",
|
|
|
|
"178.158.247.122:8338",
|
|
|
|
"66.70.247.151:8338",
|
|
|
|
"89.18.27.165:8338",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"91.222.17.86:8338",
|
|
|
|
"37.59.50.143:8338",
|
|
|
|
"91.50.219.221:8338",
|
|
|
|
"154.16.63.17:8338",
|
|
|
|
"213.136.76.42:8338",
|
|
|
|
"176.99.4.140:8338",
|
|
|
|
"176.9.48.36:8338",
|
|
|
|
"78.193.221.106:8338",
|
|
|
|
"34.236.228.99:8338",
|
|
|
|
"213.154.230.107:8338",
|
|
|
|
"111.231.66.252:8338",
|
|
|
|
"188.120.223.153:8338",
|
|
|
|
"219.89.122.82:8338",
|
|
|
|
"109.192.23.101:8338",
|
|
|
|
"98.114.91.222:8338",
|
|
|
|
"217.66.156.41:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"114.44.222.73:8338",
|
|
|
|
"91.224.140.216:8338",
|
|
|
|
"149.154.71.96:8338",
|
|
|
|
"107.181.183.242:8338",
|
|
|
|
"36.78.96.92:8338",
|
|
|
|
"46.22.7.74:8338",
|
|
|
|
"89.110.53.186:8338",
|
|
|
|
"73.243.220.85:8338",
|
|
|
|
"109.86.137.8:8338",
|
|
|
|
"77.78.12.89:8338",
|
|
|
|
"87.92.116.26:8338",
|
|
|
|
"93.78.122.48:8338",
|
|
|
|
"35.195.83.0:8338",
|
|
|
|
"46.147.75.220:8338",
|
|
|
|
"212.47.236.104:8338",
|
|
|
|
"95.220.100.230:8338",
|
|
|
|
"178.70.142.247:8338",
|
|
|
|
"45.76.136.149:8338",
|
|
|
|
"94.155.74.206:8338",
|
|
|
|
"178.70.142.247:8338",
|
|
|
|
"128.199.228.97:8338",
|
|
|
|
"77.171.144.207:8338",
|
|
|
|
"159.89.192.119:8338",
|
|
|
|
"136.63.238.170:8338",
|
|
|
|
"31.27.193.105:8338",
|
|
|
|
"176.107.192.240:8338",
|
|
|
|
"94.140.241.96:8338",
|
|
|
|
"66.108.15.5:8338",
|
|
|
|
"81.177.127.204:8338",
|
|
|
|
"88.18.69.174:8338",
|
|
|
|
"178.70.130.94:8338",
|
|
|
|
"78.98.162.140:8338",
|
|
|
|
"95.133.156.224:8338",
|
|
|
|
"46.188.16.96:8338",
|
|
|
|
"94.247.16.21:8338",
|
|
|
|
"eunode.pool.gold:8338",
|
|
|
|
"asianode.pool.gold:8338",
|
|
|
|
"45.56.84.44:8338",
|
|
|
|
"176.9.48.36:8338",
|
|
|
|
"93.57.253.121:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"176.12.32.153:8338",
|
|
|
|
"pool.serverpower.net:8338",
|
|
|
|
"213.154.229.126:8338",
|
|
|
|
"213.154.230.106:8338",
|
|
|
|
"213.154.230.107:8338",
|
|
|
|
"213.154.229.50:8338",
|
|
|
|
"145.239.0.50:8338",
|
|
|
|
"107.181.183.242:8338",
|
|
|
|
"109.201.133.93:8338",
|
|
|
|
"120.41.190.109:8338",
|
|
|
|
"120.41.191.224:8338",
|
|
|
|
"138.68.249.79:8338",
|
|
|
|
"13.95.223.202:8338",
|
|
|
|
"145.239.0.50:8338",
|
|
|
|
"149.56.95.26:8338",
|
|
|
|
"158.69.103.228:8338",
|
|
|
|
"159.89.192.119:8338",
|
|
|
|
"164.132.207.143:8338",
|
|
|
|
"171.100.141.106:8338",
|
|
|
|
"172.104.157.62:8338",
|
|
|
|
"173.176.95.92:8338",
|
|
|
|
"176.12.32.153:8338",
|
|
|
|
"178.239.54.250:8338",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"185.139.2.140:8338",
|
|
|
|
"188.120.223.153:8338",
|
|
|
|
"190.46.2.92:8338",
|
|
|
|
"192.99.194.113:8338",
|
|
|
|
"199.229.248.218:8338",
|
|
|
|
"213.154.229.126:8338",
|
|
|
|
"213.154.229.50:8338",
|
|
|
|
"213.154.230.106:8338",
|
|
|
|
"213.154.230.107:8338",
|
|
|
|
"217.182.199.21",
|
|
|
|
"35.189.127.200:8338",
|
|
|
|
"35.195.83.0:8338",
|
|
|
|
"35.197.197.166:8338",
|
|
|
|
"35.200.168.155:8338",
|
|
|
|
"35.203.167.11:8338",
|
|
|
|
"37.59.50.143:8338",
|
|
|
|
"45.27.161.195:8338",
|
|
|
|
"45.32.234.160:8338",
|
|
|
|
"45.56.84.44:8338",
|
|
|
|
"46.188.16.96:8338",
|
|
|
|
"46.251.19.171:8338",
|
|
|
|
"5.157.119.109:8338",
|
|
|
|
"52.28.162.48:8338",
|
|
|
|
"54.153.140.202:8338",
|
|
|
|
"54.68.81.2:83388338",
|
|
|
|
"62.195.190.190:8338",
|
|
|
|
"62.216.5.136:8338",
|
|
|
|
"65.110.125.175:8338",
|
|
|
|
"67.68.226.130:8338",
|
|
|
|
"73.243.220.85:8338",
|
|
|
|
"77.78.12.89:8338",
|
|
|
|
"78.193.221.106:8338",
|
|
|
|
"78.98.162.140:8338",
|
|
|
|
"79.137.64.158:8338",
|
|
|
|
"84.144.177.238:8338",
|
|
|
|
"87.92.116.26:8338",
|
|
|
|
"89.115.139.117:8338",
|
|
|
|
"89.18.27.165:8338",
|
|
|
|
"91.50.219.221:8338",
|
|
|
|
"93.88.74.26",
|
|
|
|
"93.88.74.26:8338",
|
|
|
|
"94.155.74.206:8338",
|
|
|
|
"95.154.201.132:8338",
|
|
|
|
"98.29.248.131:8338",
|
|
|
|
"u2.my.to:8338",
|
|
|
|
"[2001:470:b:ce:dc70:83ff:fe7a:1e74]:8338",
|
|
|
|
"2001:7b8:61d:1:250:56ff:fe90:c89f:8338",
|
|
|
|
"2001:7b8:63a:1002:213:154:230:106:8338",
|
|
|
|
"2001:7b8:63a:1002:213:154:230:107:8338",
|
|
|
|
"45.56.84.44",
|
|
|
|
"109.201.133.93:8338",
|
|
|
|
"120.41.191.224:30607",
|
|
|
|
"138.68.249.79:50992",
|
|
|
|
"138.68.249.79:51314",
|
|
|
|
"172.104.157.62",
|
|
|
|
"178.63.11.246:8338",
|
|
|
|
"185.139.2.140:8338",
|
|
|
|
"199.229.248.218:28830",
|
|
|
|
"35.189.127.200:41220",
|
|
|
|
"35.189.127.200:48244",
|
|
|
|
"35.195.83.0:35172",
|
|
|
|
"35.195.83.0:35576",
|
|
|
|
"35.195.83.0:35798",
|
|
|
|
"35.197.197.166:32794",
|
|
|
|
"35.197.197.166:33112",
|
|
|
|
"35.197.197.166:33332",
|
|
|
|
"35.203.167.11:52158",
|
|
|
|
"37.59.50.143:35254",
|
|
|
|
"45.27.161.195:33852",
|
|
|
|
"45.27.161.195:36738",
|
|
|
|
"45.27.161.195:58628"
|
|
|
|
],
|
|
|
|
"maxconnections": 250,
|
|
|
|
"mempoolexpiry": 72,
|
|
|
|
"timeout": 768
|
2018-07-24 08:16:09 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"blockbook": {
|
|
|
|
"package_name": "blockbook-bgold",
|
|
|
|
"system_user": "blockbook-bgold",
|
2018-07-26 04:00:38 -06:00
|
|
|
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
|
|
|
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
2018-09-20 14:07:42 -06:00
|
|
|
"explorer_url": "",
|
2018-09-24 04:04:10 -06:00
|
|
|
"additional_params": "",
|
2018-07-27 02:46:53 -06:00
|
|
|
"block_chain": {
|
|
|
|
"parse": true,
|
2018-09-24 07:04:43 -06:00
|
|
|
"subversion": "/Bitcoin Gold:0.15.2/",
|
2018-07-27 02:46:53 -06:00
|
|
|
"mempool_workers": 8,
|
|
|
|
"mempool_sub_workers": 2,
|
|
|
|
"block_addresses_to_keep": 300,
|
2019-01-28 05:34:43 -07:00
|
|
|
"xpub_magic": 76067358,
|
|
|
|
"xpub_magic_segwit_p2sh": 77429938,
|
2019-03-26 06:04:30 -06:00
|
|
|
"xpub_magic_segwit_native": 78792518,
|
2019-02-05 12:47:54 -07:00
|
|
|
"slip44": 156,
|
Add fiat rates functionality (#316)
* Add initial commit for fiat rates functionality
* templates.go: use bash from current user's environment
* bitcoinrpc.go: add FiatRates and FiatRatesParams to config
* blockbook.go: add initFiatRatesDownloader kickoff
* bitcoin.json: add coingecko API URL
* rockdb.go: add FindTicker and StoreTicker functions
* rocksdb_test.go: add a simple test for storing and getting FiatRate tickers
* rocksdb: add FindLastTicker and convertDate, make FindTicker return strings
* rocksdb: add ConvertDate function and CoinGeckoTicker struct, update tests
* blockbook.go, fiat: finalize the CoinGecko downloader
* coingecko.go: do not stop syncing when encountered an error
* rocksdb_test: fix the exported function name
* worker.go: make getBlockInfoFromBlockID a public function
* public.go: apiTickers kickoff
* rocksdb_test: fix the unittest comment
* coingecko.go: update comments
* blockbook.go, fiat: reword CoinGecko -> FiatRates, fix binary search upper bound, remove assignment of goroutine call result
* rename coingecko -> fiat_rates
* fiat_rates: export only the necessary methods
* blockbook.go: update log message
* bitcoinrpc.go: remove fiatRates settings
* use CurrencyRatesTicker structure everywhere, fix time format string, update tests, use UTC time
* add /api/v2/tickers tests, store rates as strings (json.Number)
* fiat_rates: add more tests, metrics and tickers-list endpoint, make the "currency" parameter mandatory
* public, worker: move FiatRates API logic to worker.go
* fiat_rates: add a future date test, fix comments, add more checks, store time as a pointer
* rocksdb_test: remove unneeded code
* fiat_rates: add a "ping" call to check server availability
* fiat_rates: do not return empty ticker, return nil instead if not found
add a test for non-existent ticker
* rocksdb_test: remove Sleep from tests
* worker.go: do not propagate all API errors to the client
* move InitTestFiatRates from rocksdb.go to public_test.go
* public.go: fix FiatRatesFindLastTicker result check
* fiat_rates: mock API server responses
* remove commented-out code
* fiat_rates: add comment explaining what periodSeconds attribute is used for
* websocket.go: implement fiatRates websocket endpoints & add tests
* fiatRates: add getFiatRatesTickersList websocket endpoint & test
* fiatRates: make websocket getFiatRatesByDate accept an array of dates, add more tests
* fiatRates: remove getFiatRatesForBlockID from websocket endpoints
* fiatRates: remove "if test", use custom startTime instead
Update tests and mock data
* fiatRates: finalize websocket functionality
add "date" parameter to TickerList
return data timestamps where needed
fix sync bugs (nil timestamp, duplicate save)
* fiatRates: add FiatRates configs for different coins
* worker.go: make GetBlockInfoFromBlockID private again
* fiatRates: wait & retry on errors, remove Ping function
* websocket.go: remove incorrect comment
* fiatRates: move coingecko-related code to a separate file, use interface
* fiatRates: if the new rates are the same as previous, try five more times, and only then store them
* coingecko: fix getting actual rates, add a timestamp parameter to get uncached responses
* vertcoin_testnet.json: remove fiat rates parameters
* fiat_rates: add timestamp to log message about skipping the repeating rates
2019-12-17 02:40:02 -07:00
|
|
|
"additional_params": {
|
|
|
|
"fiat_rates": "coingecko",
|
|
|
|
"fiat_rates_params": "{\"url\": \"https://api.coingecko.com/api/v3\", \"coin\": \"bitcoin-gold\", \"periodSeconds\": 60}"
|
|
|
|
}
|
2018-07-27 02:46:53 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"meta": {
|
|
|
|
"package_maintainer": "Jakub Matys",
|
|
|
|
"package_maintainer_email": "jakub.matys@satoshilabs.com"
|
2018-07-24 08:16:09 -06:00
|
|
|
}
|
Add fiat rates functionality (#316)
* Add initial commit for fiat rates functionality
* templates.go: use bash from current user's environment
* bitcoinrpc.go: add FiatRates and FiatRatesParams to config
* blockbook.go: add initFiatRatesDownloader kickoff
* bitcoin.json: add coingecko API URL
* rockdb.go: add FindTicker and StoreTicker functions
* rocksdb_test.go: add a simple test for storing and getting FiatRate tickers
* rocksdb: add FindLastTicker and convertDate, make FindTicker return strings
* rocksdb: add ConvertDate function and CoinGeckoTicker struct, update tests
* blockbook.go, fiat: finalize the CoinGecko downloader
* coingecko.go: do not stop syncing when encountered an error
* rocksdb_test: fix the exported function name
* worker.go: make getBlockInfoFromBlockID a public function
* public.go: apiTickers kickoff
* rocksdb_test: fix the unittest comment
* coingecko.go: update comments
* blockbook.go, fiat: reword CoinGecko -> FiatRates, fix binary search upper bound, remove assignment of goroutine call result
* rename coingecko -> fiat_rates
* fiat_rates: export only the necessary methods
* blockbook.go: update log message
* bitcoinrpc.go: remove fiatRates settings
* use CurrencyRatesTicker structure everywhere, fix time format string, update tests, use UTC time
* add /api/v2/tickers tests, store rates as strings (json.Number)
* fiat_rates: add more tests, metrics and tickers-list endpoint, make the "currency" parameter mandatory
* public, worker: move FiatRates API logic to worker.go
* fiat_rates: add a future date test, fix comments, add more checks, store time as a pointer
* rocksdb_test: remove unneeded code
* fiat_rates: add a "ping" call to check server availability
* fiat_rates: do not return empty ticker, return nil instead if not found
add a test for non-existent ticker
* rocksdb_test: remove Sleep from tests
* worker.go: do not propagate all API errors to the client
* move InitTestFiatRates from rocksdb.go to public_test.go
* public.go: fix FiatRatesFindLastTicker result check
* fiat_rates: mock API server responses
* remove commented-out code
* fiat_rates: add comment explaining what periodSeconds attribute is used for
* websocket.go: implement fiatRates websocket endpoints & add tests
* fiatRates: add getFiatRatesTickersList websocket endpoint & test
* fiatRates: make websocket getFiatRatesByDate accept an array of dates, add more tests
* fiatRates: remove getFiatRatesForBlockID from websocket endpoints
* fiatRates: remove "if test", use custom startTime instead
Update tests and mock data
* fiatRates: finalize websocket functionality
add "date" parameter to TickerList
return data timestamps where needed
fix sync bugs (nil timestamp, duplicate save)
* fiatRates: add FiatRates configs for different coins
* worker.go: make GetBlockInfoFromBlockID private again
* fiatRates: wait & retry on errors, remove Ping function
* websocket.go: remove incorrect comment
* fiatRates: move coingecko-related code to a separate file, use interface
* fiatRates: if the new rates are the same as previous, try five more times, and only then store them
* coingecko: fix getting actual rates, add a timestamp parameter to get uncached responses
* vertcoin_testnet.json: remove fiat rates parameters
* fiat_rates: add timestamp to log message about skipping the repeating rates
2019-12-17 02:40:02 -07:00
|
|
|
}
|