Commit Graph

151 Commits (0ae8ba57a2d763c21c017eb17f0ef62d32e25c0f)

Author SHA1 Message Date
Jakub Matys b5d1e5c94e Integration tests are defined declaratively with single implementation 2018-09-11 16:38:39 +02:00
Martin Boehm 2c62d4d248 Fix OP_RETURN parser unit tests 2018-09-11 16:22:28 +02:00
Martin Boehm 6d15e429c7 Improve OP_RETURN decoding 2018-09-11 16:07:39 +02:00
Martin Boehm 503ff4389a Merge branch 'master' into v0.0.7 2018-09-11 13:44:36 +02:00
Martin Boehm 8bdf4b0ae3 Prepare notification of block height in OnNewBlock 2018-09-11 13:37:12 +02:00
Martin Boehm 6dcf3fd45d Send the side of address (input/output) for a new tx notification 2018-09-11 13:19:56 +02:00
Jakub Matys a7bff4d7eb Merge branch 'zcash' into v0.0.7 2018-09-06 13:53:50 +02:00
Jakub Matys a130318601 Use forked version of btcutil 2018-09-06 13:52:45 +02:00
Martin Boehm 1b69a62ab8 Process OP_RETURN script in Bcash 2018-09-03 14:10:28 +02:00
Martin Boehm d50198cbff Merge branch 'master' into v0.0.7 2018-09-03 08:33:20 +02:00
Martin Boehm 6f25785109 Bcash address cashaddr/legacy handling 2018-08-31 14:03:06 +02:00
Martin Boehm 676aabfaa6 Make AddressDescriptor as type,expose DB/mempool methods working with it 2018-08-30 22:43:37 +02:00
Martin Boehm 1a931d8a65 Implement view of OP_RETURN scripts 2018-08-30 15:25:03 +02:00
Martin Boehm 2f0e4e2a0f Fix test tags 2018-08-30 13:06:11 +02:00
Martin Boehm be19523065 Refactor of address handling, renamed addrID to addr descriptor addrDesc 2018-08-29 15:31:19 +02:00
Martin Boehm c9471bf867 Store extended info about block in heigth column 2018-08-21 16:36:14 +02:00
Jakub Matys ef12666f70 Upgrade of documentation: build, config, contributing, readme 2018-08-09 14:21:15 +02:00
Martin Boehm 95f831eefa Merge branch 'master' 2018-07-31 16:06:51 +02:00
Jakub Matys 72bf3591bf Merge branch 'pkg-generate' 2018-07-31 10:51:35 +02:00
Jakub Matys f3d727f16e Changes from master 2018-07-31 10:46:15 +02:00
Jakub Matys 7f52de3b65 Upgraded BlockChain configuration 2018-07-26 16:50:06 +02:00
Martin Boehm 882ff1bfd5 Fix integration tests after switch to big.Int amounts 2018-07-25 15:56:08 +02:00
Martin Boehm 1ae62cc974 Fix coin parser tests after switch to big.Int amounts 2018-07-24 21:21:05 +02:00
Martin Boehm b464f282a9 Use big.Int for all amounts 2018-07-24 15:58:37 +02:00
Martin Boehm 64b34c1dd8 Merge branch 'explorer'
Explorer is not yet finished but brings changes in coin json configs
and blockbook flags which should be propagated.
2018-07-23 13:42:52 +02:00
Jakub Matys d15ed57f61 Removed TestSendRawTransaction because of instability 2018-07-20 12:50:30 +02:00
Jakub Matys 61eefee154 Fixed Bitcoin RPC tests 2018-07-10 17:04:31 +02:00
Jakub Matys c6d6d4138d Added new RPC tests 2018-07-10 17:04:07 +02:00
Martin Boehm 88ad20cbac Merge branch 'master' into explorer 2018-07-02 15:26:50 +02:00
Jakub Matys 42d687112f Improvement of tests - added Bitcoin mainnet, rewritten mempool tests 2018-06-28 15:32:32 +02:00
Martin Boehm f6cbe5ffeb Merge branch 'master' into explorer 2018-06-28 00:16:52 +02:00
Jakub Matys a7c128d806 Fixed names of tests 2018-06-27 12:38:03 +02:00
Jakub Matys 7040853212 Skip tests that are no able to connect their backends 2018-06-27 12:35:26 +02:00
Martin Boehm 94873f4d86 Return tx version, update parser tests 2018-06-26 13:03:59 +02:00
Martin Boehm 278b18a37f Rename httpserver and socketio flags to internal and public 2018-06-21 15:42:21 +02:00
Jakub Matys 5e6712535b Revert "Fixed different behaviour between transaction parsing from wire or JSON"
This reverts commit ae8058f269.
2018-06-21 13:48:29 +02:00
Jakub Matys 12cca393c6 Added tests for SendRawTransaction, EstimateSmartFee and EstimateFee 2018-06-21 11:18:02 +02:00
Jakub Matys ae8058f269 Fixed different behaviour between transaction parsing from wire or JSON
JSON version sometimes returned nil Address field in ScriptPubKey (if
it was omitted in input JSON) but wire version always returned allocated
empty slice.
2018-06-20 19:45:41 +02:00
Jakub Matys 757b3e39d6 Added mempool RPC/resync tests 2018-06-20 19:09:47 +02:00
Jakub Matys 7b19bf7312 Merge branch 'rpc-tests' 2018-06-18 15:21:27 +02:00
Jakub Matys f431c481ef All RPC tests rewritten to use new common methods 2018-06-18 15:19:32 +02:00
Jakub Matys 8ec0b7c590 RPC integration test was generalized for all coins 2018-06-18 13:00:54 +02:00
Martin Boehm 6945d1d7f3 Add dogecoin blockbook implementation 2018-06-14 23:12:19 +02:00
Jakub Matys 9409907f80 Tests are classified by tags 2018-06-14 17:27:03 +02:00
Jakub Matys 9225ada004 RPC tests connect localhost by default 2018-06-14 17:27:03 +02:00
Jakub Matys 7cff3ff9c8 Added integration tests of RPCs 2018-06-14 17:27:03 +02:00
Martin Boehm e7e73947bd Handle invalid json returned from backend 2018-06-13 11:58:25 +02:00
Jakub Matys 5da3972d73 Fix - some parameters aren't structs but slices 2018-06-13 10:15:27 +02:00
Jakub Matys 6ee4291f11 Refactored marshalling of Bitcoin based RPCs 2018-06-09 14:37:05 +02:00
Martin Boehm 31dc1d9c00 Merge branch 'master' into internal-state 2018-06-08 11:50:35 +02:00
Jakub Matys 400194a9aa Fixed block and address parsing 2018-06-06 13:02:41 +02:00
Martin Boehm eb716d69ed Take coin name from rpc config json 2018-06-05 16:21:54 +02:00
Martin Boehm 17ed8f7d5d Store mempool size in internal state 2018-06-01 13:22:56 +02:00
Martin Boehm a899f9e97a Use context to limit shutdown time of bchain/mq 2018-05-30 14:44:59 +02:00
Jakub Matys 092aeef2ed CashAddr decoding optimization - doesn't support multisig 2018-05-29 19:08:17 +02:00
Jakub Matys ea3cfd2d6a Address format is set in configuration instead of RPC options 2018-05-29 14:15:27 +02:00
Jakub Matys 78d7ff3a96 Merge branch 'zcash' 2018-05-29 09:11:21 +02:00
Martin Boehm e5d79b09bc Put parameters for mempool sync to coin configuration json 2018-05-28 16:04:05 +02:00
Martin Boehm 8b20c38136 Put parameter BlockAddressesToKeep to coin configuration json 2018-05-28 14:57:44 +02:00
Jakub Matys 58876150c3 Removed unused code 2018-05-23 12:55:50 +02:00
Jakub Matys 9e414dd842 Changed ports of blockbook and backend nodes 2018-05-23 11:00:13 +02:00
Jakub Matys 3634041e90 Merge branch 'fix-address-unpacking' 2018-05-19 15:16:04 +02:00
Jakub Matys d79aaefb8f bcashAddress stores btcutil's Address because of address conversions 2018-05-19 15:14:15 +02:00
Jakub Matys 3ecb380ef4 Fixed empty Address field when transaction was unpacked from JSON 2018-05-18 15:04:40 +02:00
Martin Boehm f5a8bed629 Use coin specific interface when creating mempool 2018-05-17 12:30:45 +02:00
Martin Boehm bc6f8a9e5d Retry connection to blockchain rpc on startup
After restart, the blockchain daemons are not immediately ready
to serve requests. Blockbook must wait for them.
2018-05-17 11:52:16 +02:00
Martin Boehm a2c7625a59 Speedup btc mempool synchronization - use nonverbose getrawtransaction 2018-05-14 18:12:01 +02:00
Martin Boehm 7de8726979 Cleanup mempool usage, remove obsolete GetMempoolSpentOutput 2018-05-01 22:48:58 +02:00
Jakub Matys 5eb9f613a5 fixed tests 2018-04-27 11:09:44 +02:00
Jakub Matys ab2ab365a9 added `subversion` field to result of getinfo 2018-04-27 10:53:33 +02:00
Jakub Matys b88a88ad55 use abstract address for Vout 2018-04-19 00:49:56 +01:00
Martin Boehm d0089d2bcb Add BaseParser as base functionality of parsers to avoid code duplicity 2018-04-08 15:50:19 +02:00
Martin Boehm a75376706e Move packing/unpacking of Txid and Block Hash to coin specific code 2018-04-08 11:24:29 +02:00
Martin Boehm d1a047c667 Add non UTXO mempool implementation 2018-04-03 15:51:38 +02:00
Martin Boehm 19d071a184 Remove bitcoin specific code from MQ push handler 2018-03-27 23:39:06 +02:00
Martin Boehm 26de7eb384 Rename mempool to mempool_utxo 2018-03-27 17:36:16 +02:00
Jakub Matys 6a49abe8bb Merge branch 'master' into zcash 2018-03-27 11:14:20 +02:00
Jakub Matys 18ce3edac3 Added RPC method EstimateFee 2018-03-27 10:30:30 +02:00
Martin Boehm b1694b4a61 Support sync of blockchains without block.next hash 2018-03-26 16:44:54 +02:00
Martin Boehm 341393b1eb Define error ErrBlockNotFound and implement it in btc 2018-03-26 15:17:44 +02:00
Jakub Matys 71eec95c5b ZCash uses decoded address as AddrID 2018-03-26 11:41:32 +02:00
Jakub Matys 00acae08f5 Merge branch 'master' into zcash 2018-03-23 16:11:56 +01:00
Martin Boehm 32a2c1a417 Remove unnecessary methods from BlockChainParser interface 2018-03-23 13:15:19 +01:00
Martin Boehm dda80bd074 Refactor names in interface BlockChainParser, added method IsUTXOChain 2018-03-23 11:03:41 +01:00
Jakub Matys 4421dc94dc Added empty methods for missing RPCs 2018-03-22 15:43:14 +01:00
Martin Boehm f0552ec4ad Remove metrics from specific coin implementations 2018-03-21 15:33:48 +01:00
Jakub Matys a9effbe835 Added ZCashBlockParser 2018-03-20 17:28:03 +01:00
Jakub Matys d09333fa2e WIP: zcash 2018-03-20 16:05:50 +01:00
Jakub Matys fbfb33cb5d Output index uses abstract identifier instead of outputScript 2018-03-20 16:01:36 +01:00
Martin Boehm fab41105b2 Fix typo 2018-03-19 12:05:58 +01:00
Martin Boehm 6f1c2cebbc Change order of log messages in bitcoin rpc startup 2018-03-19 11:02:19 +01:00
Martin Boehm bb9d8c5df7 Update bitcoinrpc documentation to reflect changes in configuration 2018-03-19 11:01:42 +01:00
Martin Boehm 9c94db13f6 Move rpc config to external json file, move zeromq to btc implementation 2018-03-15 12:34:29 +01:00
Jakub Matys 96a60bf7fa Renamed metrics and added implicit label `coin` 2018-03-14 09:45:10 +01:00
Martin Boehm a86e948e78 Update documentation 2018-03-13 16:09:28 +01:00
Jakub Matys d7229f8db0 added prometheus metrics 2018-03-13 11:44:50 +01:00
Martin Boehm 60a1e34572 Update README, add separate documentation for each supported coin 2018-03-12 18:00:27 +01:00
Martin Boehm b55306b6eb Hide GetBlockWithoutHeader BTC optimization from BlockChain interface 2018-03-12 17:37:32 +01:00
Martin Boehm fbc5248ef8 Handle HTTP status codes returned from blockchain rpc 2018-03-11 01:31:09 +01:00
Martin Boehm 23b795ccc7 Add base for ZCash support 2018-03-08 19:39:21 +01:00