2018-07-24 08:16:09 -06:00
|
|
|
{
|
|
|
|
"coin": {
|
2019-01-28 05:34:43 -07:00
|
|
|
"name": "Vertcoin",
|
|
|
|
"shortcut": "VTC",
|
|
|
|
"label": "Vertcoin",
|
|
|
|
"alias": "vertcoin"
|
2018-07-24 08:16:09 -06:00
|
|
|
},
|
|
|
|
"ports": {
|
|
|
|
"backend_rpc": 8040,
|
|
|
|
"backend_message_queue": 38340,
|
|
|
|
"blockbook_internal": 9040,
|
|
|
|
"blockbook_public": 9140
|
|
|
|
},
|
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-vertcoin",
|
|
|
|
"package_revision": "satoshilabs-1",
|
|
|
|
"system_user": "vertcoin",
|
2021-01-18 04:31:46 -07:00
|
|
|
"version": "0.17.1",
|
|
|
|
"binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.17.1/vertcoind-v0.17.1-linux-amd64.zip",
|
2018-07-24 08:16:09 -06:00
|
|
|
"verification_type": "gpg",
|
2021-01-18 04:31:46 -07:00
|
|
|
"verification_source": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.17.1/vertcoind-v0.17.1-linux-amd64.zip.sig",
|
2018-07-24 08:16:09 -06:00
|
|
|
"extract_command": "unzip -d backend",
|
|
|
|
"exclude_files": [],
|
|
|
|
"exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/vertcoind -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
|
|
|
"whitelist": "127.0.0.1"
|
2018-07-24 08:16:09 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"blockbook": {
|
|
|
|
"package_name": "blockbook-vertcoin",
|
|
|
|
"system_user": "blockbook-vertcoin",
|
2018-07-26 04:00:38 -06:00
|
|
|
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
|
|
|
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
2018-09-26 04:01:39 -06:00
|
|
|
"explorer_url": "",
|
2018-07-27 02:46:53 -06:00
|
|
|
"additional_params": "",
|
|
|
|
"block_chain": {
|
|
|
|
"parse": true,
|
|
|
|
"mempool_workers": 8,
|
|
|
|
"mempool_sub_workers": 2,
|
2018-12-04 04:48:36 -07:00
|
|
|
"block_addresses_to_keep": 1000,
|
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": 28,
|
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\": \"vertcoin\", \"periodSeconds\": 60}"
|
|
|
|
}
|
2018-07-27 02:46:53 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"meta": {
|
2019-01-07 03:15:30 -07:00
|
|
|
"package_maintainer": "Petr Kracik",
|
|
|
|
"package_maintainer_email": "petr.kracik@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
|
|
|
}
|