Commit Graph

205 Commits

Author SHA1 Message Date
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
Jakub Matys
942276ec86 Merge branch 'ci' 2018-10-16 13:02:28 +02:00
Jakub Matys
9f425564ed Gitlab-CI 2018-10-16 13:01:10 +02:00
Martin Boehm
2802bbaeef Merge branch 'rocksdb5.15' 2018-10-16 12:40:09 +02:00
Jakub Matys
f1ed9a5ea7 Fixed bitcoin config 2018-10-16 12:05:12 +02:00
Jakub Matys
98ff42eeaa Ignores dpkg-shlibdeps warnings 2018-10-15 13:49:20 +02:00
Jakub Matys
62f1dfbbea Added Debian source/format files 2018-10-15 13:49:16 +02:00
Jakub Matys
26e3a1bbe6 Text data moved to build directory 2018-10-15 12:59:42 +02:00
Jakub Matys
5d44ff33ff Generates backend server config (with rpcauth) and client config 2018-10-15 12:51:04 +02:00
Jakub Matys
95f6b78b6f Fixed bug of insufficient isolation of build environment 2018-10-15 12:51:04 +02:00
Jakub Matys
3b696d677e Text data (about, URL of TOS) stored in plain text files 2018-10-15 12:51:04 +02:00
Jakub Matys
56302a5d47 Dependencies (vendor) are pre-loaded in build image 2018-10-15 12:51:04 +02:00
Martin Boehm
d369242b48 Bump rocksdb to version 5.15.10 and use data format version 3 2018-10-14 00:29:05 +02:00
Martin Boehm
a16ef2904e Use coin label in the explorer header 2018-10-10 00:23:31 +02:00
Jakub Matys
8937155677 vendor from src is not removed but updated 2018-10-05 15:42:48 +02:00
Jakub Matys
e5c4bf34d7 Remove hand-made backups of vendor before calling dep ensure 2018-10-05 15:32:36 +02:00
Jakub Matys
5ca9c92bbe Added make target test-integration 2018-10-05 14:59:18 +02:00
Jakub Matys
3a37e0f8da Remove git tag from gitcommit field 2018-10-01 16:34:25 +02:00
Jakub Matys
36dca0a14c HOTFIX: make build system working againg 2018-10-01 16:13:59 +02:00
Jakub Matys
f9e5092f82 Merge branch 'v0.0.7' into integration-tests-upgrade 2018-10-01 12:47:42 +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
Jakub Matys
78300b998e Added 5min timeout to wait for service to stop 2018-09-06 11:45:13 +02:00
Martin Boehm
d50198cbff Merge branch 'master' into v0.0.7 2018-09-03 08:33:20 +02:00
Jakub Matys
22f662e0fb Ignore content of contrib directory by go test 2018-08-30 13:28:13 +02:00
Martin Boehm
05f4fb7795 Pin specific rocksdb version (rocksdb-5.14.3) in build 2018-08-23 13:42:43 +02:00
Yura Pakhuchiy
52583265e3 Fix typo in blockbook systemd service template (#36) 2018-08-13 21:57:28 +02:00
Jakub Matys
f7e9606f72 Revert "Fix debian backend template"
This reverts commit 4dc742f834.
2018-08-05 13:27:49 +02:00
Martin Boehm
e86bbefeb7 Merge branch 'wakiyamap-master' Monacoin support (#22) 2018-08-04 23:57:46 +02:00
Martin Boehm
4dc742f834 Fix debian backend template 2018-08-04 23:26:28 +02:00
Martin Boehm
cde85e1801 Merge branch 'master' of https://github.com/wakiyamap/blockbook into wakiyamap-master 2018-08-04 22:17:49 +02:00
脇山P
9cad09928d Fix blockbook package template (#34) 2018-08-04 20:54:07 +02:00
脇山P
2ff99bb0c5
add monacoin-releases.asc 2018-08-04 13:04:51 +09:00
Jakub Matys
6e5fab01d4 Added script to generate blockchain config 2018-08-01 10:55:19 +02:00
Jakub Matys
dbe71185bb Either backend or blockbook config sections are optional 2018-07-31 16:28:00 +02:00
Martin Boehm
04eb0dab3a List possible coins in the package generator 2018-07-31 15:14:42 +02:00
Jakub Matys
63a67b009c Fixed build in order to build packege by hand 2018-07-31 14:38:38 +02:00
Jakub Matys
da19a6ab57 Fixed blockbook service template 2018-07-31 13:07:29 +02:00
Jakub Matys
f3d727f16e Changes from master 2018-07-31 10:46:15 +02:00
Jakub Matys
a636a3197d Added additional params template for backend service 2018-07-31 10:30:11 +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
Jakub Matys
80911f8949 Upgraded build process in order to use generated packages 2018-07-26 14:49:14 +02:00
Jakub Matys
a573922bc1 Added templates for blockbook package 2018-07-26 12:49:57 +02:00
Jakub Matys
d2a83351f0 Added templates for backend package 2018-07-26 11:46:44 +02:00
wakiyamap
94e58118cb fix_typo 2018-07-05 04:59:02 +09:00
Martin Boehm
d7022fa9fd Change bgold explorer 2018-06-29 15:16:52 +02:00
Martin Boehm
1ca80980f6 Update litecoin explorer address 2018-06-29 14:10:51 +02:00
Petr Kracík
cb7c54ff21 Vertcoin (#13)
* Initial vertcoin backend commit

* Readme vertcoin ports

* Fix bin

* Vertcoin blockbook initial commit

* Vertcoin fix services port, faked magic due duplicity
2018-06-22 13:11:07 +02:00
Martin Boehm
e3cfa7cb88 Merge branch 'namecoin' 2018-06-21 12:47:51 +02:00
Martin Boehm
7ecddfe7d0 Update namecoin blockbook service config 2018-06-20 18:15:09 +02:00
Martin Boehm
cd6df1f5ca Add namecoin blockbook debian package 2018-06-20 18:00:08 +02:00
Martin Boehm
127080eb87 Fix zcash testnet explorer link 2018-06-19 18:46:50 +02:00
Martin Boehm
1a595362dd Update litecoin explorer links 2018-06-18 17:52:21 +02:00
Jakub Matys
7b19bf7312 Merge branch 'rpc-tests' 2018-06-18 15:21:27 +02:00
Martin Boehm
f0d6c46af3 Merge branch 'dogecoin' 2018-06-18 12:46:30 +02:00
Martin Boehm
f686a37aab Resync index/mempool more often to overcome missing ZeroMQ in dogecoin 2018-06-16 13:52:15 +02:00
Martin Boehm
91aa07444d Add blockbook packages for Dogecoin 2018-06-15 13:26:18 +02:00
Jakub Matys
9409907f80 Tests are classified by tags 2018-06-14 17:27:03 +02:00