Commit Graph

280 Commits

Author SHA1 Message Date
Roman Zeyde
313420b0e1
Simplify latest headers' retrieval 2018-05-28 14:06:36 +03:00
Roman Zeyde
548de46410
Improve logging at store.rs 2018-05-27 09:32:46 +03:00
Roman Zeyde
75d88fcec1
Improve initial data load logging 2018-05-27 09:30:57 +03:00
Roman Zeyde
ecd7511842
Simplify indexing main loop a bit 2018-05-27 08:49:13 +03:00
Roman Zeyde
67ece2dd49
Retrieve blockchain state before opening the DB
This would make sure that bitcoind is up and running.
2018-05-26 17:14:15 +03:00
Roman Zeyde
50941e7bea
Return errors (instead of panics) during indexing 2018-05-26 17:13:37 +03:00
Roman Zeyde
8774e11fc3
Allow restarting the app in case of an error 2018-05-26 17:08:46 +03:00
Roman Zeyde
421e1877bb
Fix vec![] usage 2018-05-26 12:07:57 +03:00
Roman Zeyde
1786fa69ed
Refactor Connection::send_value() 2018-05-26 12:01:36 +03:00
Roman Zeyde
ae438b554f
Format rpc.rs 2018-05-26 11:45:07 +03:00
Roman Zeyde
c80c836852
Simplify error handling for Query::get_best_header() 2018-05-26 11:43:15 +03:00
Roman Zeyde
bf92ceeb16
Return errors back to RPC clients
and fix error handling in more places.
2018-05-25 23:05:25 +03:00
Roman Zeyde
2355dbd0ed
Add proper error handling (instead of unwrapping) to query.rs 2018-05-25 19:10:03 +03:00
Roman Zeyde
0d56b2ecc6
Use one error_chain definition 2018-05-25 12:00:39 +03:00
Roman Zeyde
a30f492d28
Handle daemon failures gracefully 2018-05-25 11:18:02 +03:00
Roman Zeyde
503946ee23
Add -v flag for log verbosity 2018-05-25 10:30:38 +03:00
Roman Zeyde
fd03723842
Use std::thread instead of crossbeam 2018-05-25 10:30:20 +03:00
Roman Zeyde
b69219a550
Pass application state and query via Arc
(consider Tokio futures)
2018-05-24 21:01:34 +03:00
Roman Zeyde
375bc0303a
Rename indexrs.rs to main.rs 2018-05-24 20:46:00 +03:00
Roman Zeyde
1a2cd40c34
Add a small TODO 2018-05-24 20:45:57 +03:00
Roman Zeyde
4cebd1e25f
Remove 0MQ Python client 2018-05-24 20:45:54 +03:00
Roman Zeyde
77573fdd19
Remove unused Stats c-tor 2018-05-23 20:50:09 +03:00
Roman Zeyde
38bb8411e1
Move most of the application code back into the library 2018-05-23 17:40:29 +03:00
Roman Zeyde
a0f61e6a94
Add tokio dependency 2018-05-23 17:40:01 +03:00
Roman Zeyde
248df5207f
Remove tracker tool 2018-05-23 17:39:10 +03:00
Roman Zeyde
8fdc244b0a
Pre-compute configuration settings before starting 2018-05-23 16:36:10 +03:00
Roman Zeyde
d50f4746d8
Move TODOs to a separate file and reorg it a bit 2018-05-23 13:33:34 +03:00
Roman Zeyde
ab9f273bc0
Don't specify patch versions at Cargo.toml 2018-05-23 10:28:38 +03:00
Roman Zeyde
cbbb298b5c
Show confirmed and unconfirmed balances separately 2018-05-22 23:19:13 +03:00
Roman Zeyde
619bbb52ad
Add more TODOs 2018-05-22 22:28:17 +03:00
Roman Zeyde
43de21990f
Decrease log verbosity in Python tool 2018-05-22 22:10:28 +03:00
Roman Zeyde
a681334074
Support (older) ETA-based fee estimation 2018-05-22 22:04:21 +03:00
Roman Zeyde
fdff31a069
Update mempool histogram once (after txns' sync) 2018-05-22 21:55:59 +03:00
Roman Zeyde
06d0c8d77f
Split Store trait into its R/W parts 2018-05-22 14:40:53 +03:00
Roman Zeyde
4747e380ec
Update index once (instead at each status RPC) 2018-05-22 10:17:02 +03:00
Roman Zeyde
e5da12a5e8
Update index logging 2018-05-22 09:43:52 +03:00
Roman Zeyde
e5ecd13658
Add a few more TODOs 2018-05-22 09:25:53 +03:00
Roman Zeyde
b210727831
Ignore sublime-related files 2018-05-22 09:25:42 +03:00
Roman Zeyde
beab2c50c9
Add mempool-polling script 2018-05-22 09:25:10 +03:00
Roman Zeyde
0404e91bb9
Handle both index and mempool during Query::status() invocation 2018-05-21 21:20:44 +03:00
Roman Zeyde
24eddc5881
Notify once on each block header 2018-05-21 13:35:34 +03:00
Roman Zeyde
99466c13a6
Add more TODOs 2018-05-21 13:21:21 +03:00
Roman Zeyde
cc3b1ddccc
Periodically poll subscription status (w/ mempool) 2018-05-21 13:21:00 +03:00
Roman Zeyde
c487f2ba40
Use i32 height only at Status::history() method 2018-05-21 13:18:14 +03:00
Roman Zeyde
de884ac06b
Scan mempool transaction during status query 2018-05-21 11:34:36 +03:00
Roman Zeyde
5941edbbc6
Remove itertools dependency 2018-05-21 11:18:16 +03:00
Roman Zeyde
c030f8739d
Add TODO.txt 2018-05-21 09:16:21 +03:00
Roman Zeyde
935c3cfb7b
Make query-related structs and members private 2018-05-20 22:58:26 +03:00
Roman Zeyde
d9b0e0c917
Move and rename MemStore to mempool module 2018-05-20 22:31:55 +03:00
Roman Zeyde
042991106b
Split transaction indexing into a separate function 2018-05-20 14:47:39 +03:00