Commit Graph

48 Commits

Author SHA1 Message Date
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
Roman Zeyde
2657db6a21
Log StoreOptions while opening the DB 2018-04-23 10:59:07 +03:00
Roman Zeyde
78ce5c9203
Allow query-only server via --disable-indexing flag 2018-04-23 10:58:39 +03:00
Roman Zeyde
1af76c2833
Add batching iterator 2018-04-22 15:58:07 +03:00
Roman Zeyde
da39169cef
Add simple ZMQ RPC server 2018-04-20 21:33:49 +03:00
Roman Zeyde
390d4d0290
Reuse DB::get() at compact_as_needed() 2018-04-20 17:46:11 +03:00
Roman Zeyde
6b9d38df49
Add simple balance query support 2018-04-15 23:45:30 +03:00
Roman Zeyde
e388a8ae18
Refactor indexing and fix potential TxIn key collision 2018-04-15 11:07:46 +03:00
Roman Zeyde
012b8b2c90
Add types.rs to git 2018-04-13 22:59:12 +03:00
Roman Zeyde
7d26232b53
Use a constant for DB path 2018-04-13 22:58:54 +03:00
Roman Zeyde
5e48e1e1dc
Append to log file 2018-04-13 22:58:18 +03:00
Roman Zeyde
9af0df224f
Separate main to src/bin/index_server.rs 2018-04-13 22:51:04 +03:00
Roman Zeyde
a02502f46d
Use log file (in addition to terminal) 2018-04-12 22:23:16 +03:00
Roman Zeyde
95ede83092
Tweak DB options and progress bar a bit 2018-04-12 22:07:59 +03:00
Roman Zeyde
9996e3a4f7
Store prefix of output script hash 2018-04-12 21:57:05 +03:00
Roman Zeyde
5ed0db6957
Use binecode crate for serialization` 2018-04-12 18:57:49 +03:00
Roman Zeyde
4354837fc7
Use explicit Sha256dHash type (instead of Bytes) 2018-04-11 21:33:35 +03:00
Roman Zeyde
0750e0b670
Use HeaderMap type 2018-04-11 21:14:18 +03:00
Roman Zeyde
3f183b8fcc
Pass block headers instead of block hashes 2018-04-11 21:06:38 +03:00
Roman Zeyde
e1074e4aec
Add comment about block hash byte-order 2018-04-11 20:41:57 +03:00
Roman Zeyde
10d3182ee9
Replace has_block() by read_header() 2018-04-11 20:41:25 +03:00
Roman Zeyde
611fce4dfb
Add simple from_hex() helper 2018-04-11 19:44:56 +03:00
Roman Zeyde
c68a6fdedb
Use Bytes for block hash (instead of String) 2018-04-11 18:44:48 +03:00
Roman Zeyde
c7f138ec90
Rename HASH_LEN to HASH_PREFIX_LEN 2018-04-11 17:05:35 +03:00
Roman Zeyde
a84d677a20
Remove unneeded mut from Store 2018-04-11 17:05:13 +03:00
Roman Zeyde
a770804e19
Move indexing logic into index.rs 2018-04-11 17:00:17 +03:00
Roman Zeyde
9ee7714cb0
Use simple progress bar for indexing 2018-04-11 16:24:56 +03:00
Roman Zeyde
09d4df49f3
Move extern crate to main.rs 2018-04-11 12:44:44 +03:00
Roman Zeyde
17ea973c02
Log latest block time 2018-04-11 12:35:08 +03:00
Roman Zeyde
0f743be785
Split main.rs into a few modules 2018-04-11 10:59:22 +03:00
Roman Zeyde
5605ff7451
Run full compaction once after initial sync 2018-04-10 23:16:40 +03:00
Roman Zeyde
294649e51a
Update RocksDB 2018-04-10 22:51:36 +03:00
Roman Zeyde
4d0346e1ab
Add ZMQ wait helper 2018-04-10 22:28:32 +03:00
Roman Zeyde
e64617fd04
Refactor blocks' indexing into a separate function 2018-04-10 20:24:22 +03:00
Roman Zeyde
e2a610767f
Consume unindexed hashes' list 2018-04-10 20:09:12 +03:00
Roman Zeyde
2a773d78b0
Skip already indexed blocks 2018-04-10 20:07:04 +03:00
Roman Zeyde
c88437af04
Optimize for spinning disk
https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide#difference-of-spinning-disk
2018-04-09 22:00:06 +03:00
Roman Zeyde
fc7d6f389e
Collect more progress metrics 2018-04-09 14:29:53 +03:00
Roman Zeyde
5a0451425f
Single threaded indexer and storage 2018-04-09 14:17:57 +03:00
Roman Zeyde
d4084a7dfe
Add simple timing 2018-04-09 11:31:05 +03:00
Roman Zeyde
2bf79782c4
Load all headers and parse all blocks 2018-04-08 23:50:59 +03:00