Commit Graph

163 Commits (deepcrayon)

Author SHA1 Message Date
jebba f4f7612655 more minimal 2021-04-05 14:25:58 -06:00
jebba 8fd633c6d3 dont use ssl 2021-04-05 13:08:44 -06:00
jebba 2771784113 systemd, dont want backend 2021-04-05 13:07:38 -06:00
jebba f05eff6b13 dont require backend dep 2021-04-05 13:05:55 -06:00
jebba 7ba8d7f143 s/github/spacecruft 2021-04-05 12:59:11 -06:00
jebba 4b352b5bbc template go use spacecruft 2021-04-05 12:50:52 -06:00
jebba 2f1c4bc3af use spacecruft repo 2021-04-05 11:55:41 -06:00
jebba 27c9434383 about/tos 2021-04-05 11:37:06 -06:00
Martin Boehm 0ae8ba57a2 Update for geth version 1.10
- remove workaround for to low maxRequestContentLength
- stop using obsolete eth_protocolVersion RPC call
2021-03-09 11:37:35 +01:00
Perlover 37c7f4fbd1 Ubuntu 20.04 doesn't work without this patch
The problem was described here:

https://github.com/trezor/blockbook/issues/568
2021-02-23 21:12:08 +01:00
Martin Boehm dcbcb99055 Add possibility to build from BASE_IMAGE 2021-02-18 09:14:58 +01:00
Martin Boehm 212b767925 Add TCMALLOC option to build of rocksdb 2021-02-18 09:14:58 +01:00
Jin Eguchi 077e637093
add bitcoin-signet (#533) 2020-12-29 00:47:50 +01:00
Martin Boehm 69d13e0688 Fix ETH Ropsten: websocket: read limit exceeded #490
Geth sets maxRequestContentLength to 5M.
However, Ropsten contains blocks of largers size (for example 599281).
These which cannot be fetched using API.

Fixed by hacky way of modifying the geth source before
the build of the project.
Will submit PR to go-ethereum with final fix.
2020-12-04 11:57:11 +01:00
Martin Boehm 579b42cf27 Stop using mod vendor in Blockbook build 2020-12-04 11:57:11 +01:00
Martin Boehm 576b8b57b7 Upgrade to go 1.15.6, rocksdb 6.13.3 and other dependecies 2020-12-04 11:57:11 +01:00
Dehumanizer77 bc009454d0 dash (+testnet): 0.15.0.0 → 0.16.0.1 2020-11-16 16:01:37 +01:00
Martin Boehm 83616bce83 Fix integration tests script 2020-06-30 15:06:11 +02:00
Martin Boehm a7d95a49df Use go1.14.2 to build Blockbook 2020-05-10 00:26:47 +02:00
David Hill 395db88a60 Adjust test scripts 2020-03-05 11:54:42 -05:00
David Hill 8f8ade727c Adjust build scripts 2020-03-05 11:54:42 -05:00
David Hill 13527bda06 build: go module support 2020-03-05 11:54:42 -05: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
Liam Alford 4134934031 Add DeepOnion (#298)
* Add DeepOnion

* Fix config bugs

* Use base pack/unpck TX

* Fix empty array causing test failure.

* Fix config files and executable.

* Fix sync issue

* Fix integration tetsts
2019-11-18 17:51:45 +01:00
vlddm 86a0b5783d Disable wallet functionality for bitcoind 2019-09-22 17:28:09 +02:00
atomlab 28a8641c8e add decred.conf (#292)
* Update decred.json

change config path to decred.conf

* Create decred.conf

* Create decred_client.conf

* Update decred.json

* Update decred.conf

* Update decred.conf

* Update decred_client.conf
2019-09-20 11:35:26 +02:00
Min Khang Aung 24725a21a9 Add CPUchain support (#288)
* Add CPUchain support

* Update cpuchain.json
2019-09-16 22:32:08 +02:00
Martin Boehm 094be77ceb Add Bcash specific backend configuration after backend upgrade 2019-08-21 15:33:11 +02:00
Vladyslav Burzakovskyy 20eed82e48 Use "#!/usr/bin/env bash" in shebangs instead of "#!/bin/bash" 2019-06-17 18:30:39 +02:00
Martin Boehm 6447cdb1b7 Switch from TREZOR to Trezor according to new design guidelines #201 2019-06-17 15:39:35 +02:00
Martin Boehm bbc6ea4cec Sync coin parameters from trezor-firmware monorepo 2019-05-31 13:51:08 +02:00
Martin Boehm 8b07783134 Bump golang to version 1.12.4 and rocskdb to 5.18.3 in docker build 2019-05-27 12:24:24 +02:00
ilmango 68fed56d12 Remove bellcoin-releases.asc 2019-04-23 12:15:07 +02:00
ilmango 3551c90590 Add Bellcoin (#116)
* Add Bellcoin

* Add integration tests

* Add bellcoinparser_test

* Fix testTxPacked

* Add tests files

* Fix indentation

* Fix indentation

* add bellcoin gpg key

* fix binary link

* Fix verification_type

* Fix verification_type

* fix username

* Fix verification
2019-03-04 22:29:30 +01:00
Martin Boehm dda96b4a8f Merge branch 'xpub' 2019-03-01 11:12:40 +01:00
Gruve_p 16558d23c0 Bump Groestlcoin backend version to 2.17.2 (#128) 2019-02-25 17:34:06 +01:00
WO 6460ca3872 Fix typo 2019-02-13 12:09:40 +01:00
WO d28a0beab6 Revert Dcokerfile 2019-02-13 12:09:40 +01:00
WO bee0f8c709 Change OS for docker build 2019-02-13 12:09:40 +01:00
Martin Boehm 64c8ae9a62 Estimate full derivation path from xpub 2019-02-05 20:47:54 +01:00
Martin Boehm dafe19cf29 Synchronize xpub magic numbers from trezor-common 2019-01-28 13:34:43 +01:00
WO e83511469b Add Koto (#107)
I have constructed blockbook for Koto at the following URL.
https://blockbook.kotocoin.info/
2019-01-23 22:08:28 +01:00
Petr Kracík 024b25dff7 Bump DASH version to 0.13.0.0, replaced DASH GPG key 2019-01-23 15:13:36 +01:00
Martin Boehm 522e6528d3 Merge Fujicoin into indexv4 branch #104 2019-01-16 23:19:08 +01:00
FujiCoin 3cca225c14 Add Fujicoin (#104)
Please add Fujicoin.
2019-01-16 23:06:36 +01:00
Martin Boehm 26f293fc42 Bump golang to version 1.11.4 in docker build 2019-01-03 18:07:30 +01:00
Martin Boehm 44f07734ce Bump rocksdb to version 5.17.2 and use data format version 4 2019-01-03 18:05:06 +01:00
wakiyamap a80a8f9122 fix build error 2018-11-18 04:53:54 +09:00
Petr Kracík 95d27a7d1d Bump ethereum classic version to 5.5.1 (#80) 2018-10-22 14:06:53 +02:00
Jakub Matys baff6b5e3c Build makes sure that images are rebuilt after change of docker defs 2018-10-17 13:04:03 +02:00