Commit Graph

24 Commits (996834b0cb18e73a48cce7391f7db1c2c0104921)

Author SHA1 Message Date
vdovhanych 996834b0cb etc: 1.11.20 → 1.11.22 2021-02-23 10:45:15 +01:00
Dehumanizer77 6981222a43 etc: 1.11.18 → 1.11.20 2020-12-29 21:18:54 +01:00
Dehumanizer77 5e7d0e9f75 etc: 1.11.15 → 1.11.18 2020-11-16 15:59:54 +01:00
JoHnY 4832205f45 etc: 1.11.12 -> 1.11.15 2020-10-06 14:23:07 +02:00
1000101 2fb1e779c0 etc: 1.11.7->1.11.12 2020-08-20 10:15:17 +02:00
Martin Boehm ab285c6b05 Increase max size of reorg of ETC to 10000 blocks 2020-08-06 10:27:08 +02:00
Dehumanizer77 92ae2052c3 etc: Bump backend 1.11.2->1.11.7 2020-06-29 17:17:36 +02:00
v bad9f992e1 eth-like backends listen on localhost instead * 2020-05-19 23:56:35 +02:00
Dehumanizer77 ea6a7e0db6 etc: Bump backend 1.11.1 -> 1.11.2 2020-04-16 11:43:32 +02:00
JoHnY c705600aae
etc: Bump backend 1.11.0-core -> 1.11.1 #391 #387 2020-03-11 15:44:44 +01:00
Dehumanizer77 0de7475d89 etc: Bump backend 1.9.9 -> 1.11.0-core 2020-03-04 10:50:52 +01:00
Martin Boehm 7e35bac99c Remove etc specific code after upgrade to multi-geth backend 2020-02-11 12:08:03 +01:00
JoHnY 744fd45c06
etc: Switch from getc 6.0.9 to multi-geth/etclabscore 1.9.9 (#362)
* etc: Switch from getc 6.0.9 to multi-geth/etclabscore 1.9.9
* etc: Fix multi-geth to sync with correct chain
2020-02-11 12:07:47 +01:00
Vladyslav Burzakovskyy f6111af5da 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 10:40:02 +01:00
Martin Boehm a4594bf073 Fix ethereum-classic backend package 2019-08-28 17:26:12 +02:00
Jan Hrnko 431473c30d etc: Bump backend 5.5.2 -> 6.0.9 2019-08-23 11:59:26 +02:00
Martin Boehm add504b57e Make ethereum type mempool parameters configurable 2019-04-08 14:39:29 +02:00
Martin Boehm a7b8994419 Merge branch 'ethereum' into indexv4 2018-12-20 16:07:34 +01:00
Petr Kracík 7459830d0e Bump Ethereum Classic to 5.5.2 2018-12-05 11:17:28 +01:00
Martin Boehm 463eab9d2d Show ethereum specific data in tx detail in explorer 2018-11-28 14:56:45 +01:00
Petr Kracík 95d27a7d1d Bump ethereum classic version to 5.5.1 (#80) 2018-10-22 14:06:53 +02:00
Jakub Matys 5d44ff33ff Generates backend server config (with rpcauth) and client config 2018-10-15 12:51:04 +02:00
Martin Boehm b1317789de Handle unsupported newHeads subscription in Ethereum Classic 2018-09-05 16:27:34 +02:00
Petr Kracík 016ca7beb4 Backend configuration for Ethereum Classic (#29) 2018-08-02 18:05:10 +02:00