Commit Graph

52 Commits (5a4cde6941b5fb27ed21e84335a76da6be5f2173)

Author SHA1 Message Date
Pavol Rusnak 7bf9be0793 bch(+testnet): 0.22.6 -> 22.1.0 (switch to Bitcoin Cash Node)
use spoofed subversion to not confuse wallets
2020-11-16 13:15:45 +01:00
Pavol Rusnak cdbe6340b6 bch(+testnet): 0.22.0 -> 0.22.6 (switch to BCHN) (#511) 2020-11-16 13:15:45 +01:00
1000101 a8ee6aefb0 bch(+testnet): 0.21.10->0.22.0 2020-08-26 13:24:57 +02:00
root 07ac3c8401 bcash (+testnet): Bump backend 0.21.0 -> 0.21.10 2020-07-07 16:56:44 +02:00
JoHnY d5b304c76a
Bump zec, bch, eth and dash backends (#370)
* zec (+testnet): Bump backend 2.1.0-1 -> 2.1.1-1

* bch (+testnet): Bump backend 0.20.8 -> 0.21.0

* eth (+testnet): Bump backend 1.9.10 -> 1.9.11

* dash (+testnet): Bump backend 0.14.0.5 -> 0.15.0.0
2020-02-19 15:27:51 +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
Jan Hrnko e2b34afb9c bch (+testnet): Bump backend 0.20.7 -> 0.20.8 2019-12-11 14:20:11 +01:00
Jan Hrnko f94878b234 bch (+testnet): Bump backend 0.20.6 -> 0.20.7 2019-11-30 18:40:31 +01:00
Jan Hrnko bb1b909361 bch (+testnet): Bump backend 0.20.5 -> 0.20.6 2019-11-15 08:53:14 +01:00
Jan Hrnko bc4b1905f5 bch (+testnet): Bump backend 0.20.4 -> 0.20.5 2019-11-01 17:37:33 +01:00
Jan Hrnko f4501e7e1f bch (+testnet): Bump backend 0.20.2 -> 0.20.4 2019-10-18 21:36:45 +02:00
Jan Hrnko 0f39657006 bcash (+testnet): Bump backend 0.20.1 -> 0.20.2 2019-09-18 15:31:39 +02:00
Jan Hrnko 485887a130 bcash (+testnet): Bump backend 0.20.0 -> 0.20.1 2019-09-04 18:41:18 +02:00
Jan Hrnko d089a84ba9 bch (+testnet): Bump backend 0.19.12 -> 0.20.0 2019-08-21 22:44:25 +02:00
Martin Boehm 094be77ceb Add Bcash specific backend configuration after backend upgrade 2019-08-21 15:33:11 +02:00
Jan Hrnko e234186f6a bch (+testnet): Bump backend 0.19.10 -> 0.19.12 2019-08-21 14:26:37 +02:00
Jan Hrnko 8b9fe50677 Bump bcash backend (+testnet) 0.19.9 -> 0.19.10 2019-07-18 17:42:18 +02:00
Jan Hrnko 72143f027c Bump bcash backend (+testnet) 0.19.8 -> 0.19.9 2019-07-05 10:31:00 +02:00
Ján Hrnko d6883a5f35 Bump bcash backend (+testnet) 0.19.7 -> 0.19.8 (#208) (#199) 2019-06-19 11:09:26 +02:00
Jan Hrnko 25027ad92e bump btc cash backend (+testnet) 0.19.6 -> 0.19.7 2019-06-17 10:46:56 +02:00
Martin Boehm 942c95add8 Update coin configs 2019-05-27 12:24:24 +02:00
Jan Hrnko 9da5f0cc35 Bump bitcoin cash (+testnet) backend 0.19.5 -> 0.19.6 2019-05-20 16:53:57 +02:00
Ján Hrnko 93e4b3f4e1 bump bitcoin cash backend 0.19.4 -> 0.19.5 (#178)
* bump bitcoin cash backend 0.19.4 -> 0.19.5

* bump bitcoin cash testnet backend 0.19.4 -> 0.19.5
2019-05-18 10:56:15 +02:00
Petr Kracík c34af64f0c Bump Bcash to 0.19.4 2019-04-25 11:03:38 +02:00
Petr Kracík 9abff90701 Bump Bcash to 0.19.3 2019-04-11 14:56:33 +02:00
Petr Kracík 955209db6b Bump BCash backend version to 0.19.2 2019-03-28 11:11:42 +01:00
Martin Boehm 8c471ed20d Fix bcash EstimateFee after interface change in backend v0.19.1 2019-03-27 14:25:36 +01:00
Petr Kracík 713f928a57 Bump BCash backend version to 0.19.1 2019-03-27 13:27:38 +01:00
Martin Boehm dda96b4a8f Merge branch 'xpub' 2019-03-01 11:12:40 +01:00
Petr Kracík 7042a45ba5 Bump Bcash backend to version 0.19.0 2019-02-21 21:31:48 +01:00
Petr Kracík 166bf74162 Bump Bcash backend to version 0.18.8 2019-02-13 12:09:14 +01:00
Martin Boehm 64c8ae9a62 Estimate full derivation path from xpub 2019-02-05 20:47:54 +01:00
Petr Kracík 42686166d8 Bump Bcash backend to version 0.18.7 2019-02-04 14:51:47 +01:00
Martin Boehm dafe19cf29 Synchronize xpub magic numbers from trezor-common 2019-01-28 13:34:43 +01:00
Petr Kracík 5b8954b74f Bump BCash version to 0.18.6 2019-01-23 15:14:12 +01:00
Petr Kracík 4eb60f7a70 Bump BCH ABC to 0.18.5 2018-11-21 08:34:36 +01:00
Jakub Matys 5d44ff33ff Generates backend server config (with rpcauth) and client config 2018-10-15 12:51:04 +02:00
Jakub Matys bf266c0db8 Merge branch 'integration-tests-upgrade-2' into v0.0.7 2018-10-01 14:34:34 +02:00
Jakub Matys f9e5092f82 Merge branch 'v0.0.7' into integration-tests-upgrade 2018-10-01 12:47:42 +02:00
Martin Boehm d73f30c739 Bump bcash backend to version 0.18.2 2018-09-21 12:57:41 +02:00
Martin Boehm 8ad6d1d52c Remove /explorer part from URL, blockbook status with external explorer 2018-09-20 22:07:42 +02:00
Jakub Matys 5754523317 WIP: sync integration tests 2018-09-20 09:39:13 +02:00
Martin Boehm 699f259e3d Bump Bcash backend to version 0.18.1, change binary verification to gpg
Bcash signers are at Bitcoin-ABC github
in the file contrib/gitian-signing/keys.txt

Download the public key:
gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys <key>

Create asc file from imported key:
gpg --armor --export <email> ><filename>.asc
2018-09-17 15:31:42 +02:00
Jakub Matys b5d1e5c94e Integration tests are defined declaratively with single implementation 2018-09-11 16:38:39 +02:00
Martin Boehm 402eb92c5e Use internal explorer for bcash and zcash 2018-09-11 16:10:59 +02:00
Martin Boehm ed1bdb30f7 Switch bcash to cashaddr format 2018-09-02 21:32:32 +02:00
Jakub Matys a636a3197d Added additional params template for backend service 2018-07-31 10:30:11 +02:00
Jakub Matys c71de0a696 Unified addresses in IPC section 2018-07-27 12:10:01 +02:00
Jakub Matys f9b21b4192 Changed structure of config files 2018-07-27 11:56:16 +02:00
Jakub Matys 7f52de3b65 Upgraded BlockChain configuration 2018-07-26 16:50:06 +02:00