Commit Graph

94 Commits

Author SHA1 Message Date
Roman Zeyde
8775b04cc7
Improve RPC logging and function structure 2018-05-16 18:28:59 +03:00
Roman Zeyde
d82489c2a4
Improve RPC error handing 2018-05-16 17:26:16 +03:00
Roman Zeyde
4404f120a1
Always index the blockchain 2018-05-16 17:24:18 +03:00
Roman Zeyde
3a451a8dbd
Don't use progress bar after first index update 2018-05-16 11:16:39 +03:00
Roman Zeyde
b0fb4d4367
Refactor rows' serialization into index module 2018-05-15 15:23:51 +03:00
Roman Zeyde
935467e6b4
Rename main binary 2018-05-15 09:45:50 +03:00
Roman Zeyde
1d84da30dc
Change tx height to be i32 (to support unconfirmed status) 2018-05-15 08:54:28 +03:00
Roman Zeyde
c88b5d4cb0
Remove ZMQ dependency 2018-05-14 13:55:14 +03:00
Roman Zeyde
8fe9e83abf
Fix types' usage 2018-05-14 13:52:55 +03:00
Roman Zeyde
eab64181bb
Create simple mempool tracker 2018-05-14 13:41:11 +03:00
Roman Zeyde
c8a5cb9c56
Replace ZMQ by simple tip polling 2018-05-14 09:57:53 +03:00
Roman Zeyde
f0ff0bbe29
Move 'waiter' -> 'notification' 2018-05-12 16:36:51 +03:00
Roman Zeyde
b992039882
Add a small buffer to 0MQ notification channel 2018-05-11 20:23:56 +03:00
Roman Zeyde
64e9f2ee68
Fix minor formatting issues 2018-05-11 20:23:24 +03:00
Roman Zeyde
03dacc1b82
Get hashtx notifications via 0MQ for mempool tracking 2018-05-10 23:22:19 +03:00
Roman Zeyde
5ee8e7171a
Remove reqwest dependency and Daemon::get() HTTP-based method 2018-05-10 11:54:52 +03:00
Roman Zeyde
ace4da4576
Add simple travis config 2018-05-09 23:21:22 +03:00
Roman Zeyde
039276bff2
Replace most of HTTP GETs with JSONRPC calls 2018-05-09 23:19:17 +03:00
Roman Zeyde
1b2a84c0ff
Add simplified bitcoind JSONRPC client 2018-05-08 23:07:52 +03:00
Roman Zeyde
44c4ba491f
Don't get stuck when RPC update cannot be sent 2018-05-07 23:20:38 +03:00
Roman Zeyde
10aeea89be
Add simple 0MQ testing tool 2018-05-07 22:20:00 +03:00
Roman Zeyde
d9ddfc4289
Add support for testnet BTC 2018-05-07 12:35:36 +03:00
Roman Zeyde
15971dcfef
Update clients after indexing new blocks 2018-05-07 11:52:46 +03:00
Roman Zeyde
92bfe88b46
Handle block and script_hash subscription 2018-05-07 10:54:31 +03:00
Roman Zeyde
10c6daebbe
React to new blocks' notifications 2018-05-06 21:10:39 +03:00
Roman Zeyde
318008acd6
Log RPC requests at INFO level 2018-05-03 20:02:08 +03:00
Roman Zeyde
53d55e9842
Add refactoring TODO to Header-related structs 2018-05-03 15:21:56 +03:00
Roman Zeyde
06a2326e46
Rename BatchIter -> Batching 2018-05-03 12:05:34 +03:00
Roman Zeyde
c88a28e873
Load (most of) indexed headers from DB at first update
Re-use in-memory headers (and don't re-load from DB on next runs).
2018-05-02 23:41:53 +03:00
Roman Zeyde
c80da65885
Add error_chain to daemon module 2018-05-02 22:20:17 +03:00
Roman Zeyde
ea31d17c42
Implement get_merkle API 2018-05-02 21:47:52 +03:00
Roman Zeyde
909802e6fe
Refactor RPC parameter parsing 2018-05-02 21:47:11 +03:00
Roman Zeyde
993ab96b64
Move HeaderList to index module 2018-05-02 19:11:43 +03:00
Roman Zeyde
ab785abbee
Simplify indexing logging 2018-05-02 16:58:16 +03:00
Roman Zeyde
ca2223e476
Simplify string concatenation 2018-05-02 16:53:40 +03:00
Roman Zeyde
3e307a2e1f
Fix out-of-bound panic 2018-05-02 16:09:45 +03:00
Roman Zeyde
0b5a67b81f
Support get_header API 2018-05-02 15:59:39 +03:00
Roman Zeyde
12d16f0df5
Increase file log level 2018-05-02 13:45:47 +03:00
Roman Zeyde
4a5fc5e83b
Add very simple Electrum API 2018-05-02 13:42:13 +03:00
Roman Zeyde
92ac75e50d
Support get_chunk API call via concurrent Index::header_list() 2018-05-01 15:05:55 +03:00
Roman Zeyde
e3490568cf
Don't use Option<HeaderList> at Index 2018-05-01 12:51:14 +03:00
Roman Zeyde
d3a18537d8
Use equals instead of manual comparison of last headers 2018-05-01 12:25:37 +03:00
Roman Zeyde
c157185de2
Add some TODOs 2018-05-01 11:12:27 +03:00
Roman Zeyde
7b858f9989
Implement blockchain_transaction_get RPC 2018-04-30 22:30:12 +03:00
Roman Zeyde
95da35ac80
Move query-related code into a separate module 2018-04-30 14:56:00 +03:00
Roman Zeyde
68feda0baa
Use jsonrpc for simple balance check 2018-04-30 14:37:23 +03:00
Roman Zeyde
114befd559
Refactor to optimize hashing and keep headers available for queries 2018-04-29 23:15:48 +03:00
Roman Zeyde
78f722aadc Allow partial downloads after initial header sync 2018-04-26 13:36:06 +03:00
Roman Zeyde
a448758bf0 Refactor headers' list into a separate type 2018-04-26 12:24:32 +03:00
Roman Zeyde
4ba7e0092d
WiP 2018-04-25 22:44:36 +03:00