1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 23:08:39 +01:00
Commit graph

616 commits

Author SHA1 Message Date
Roman Zeyde
4b008809ff
Settubg max_open_files doesn't seem to help with full compactions 2018-06-26 15:32:59 +03:00
Roman Zeyde
1c70addede
Fix travis 2018-06-26 09:32:35 +03:00
Roman Zeyde
f631bf26af
Dedup FakeStore definition 2018-06-25 23:06:24 +03:00
Roman Zeyde
c197a51bc4
Support testnet network magic constant 2018-06-25 22:52:31 +03:00
Roman Zeyde
f003bc5afc
Stop parsing if not enough bytes for magic 2018-06-25 22:17:34 +03:00
Roman Zeyde
0de580a300
Perform compaction after blk*.dat parsing is over 2018-06-25 22:16:46 +03:00
Roman Zeyde
8e0a719cee
Replace eprintln!() by error!() 2018-06-25 22:16:22 +03:00
Roman Zeyde
4a56884da2
Use iterator adapter to find last indexed blockhash 2018-06-25 14:14:05 +03:00
Roman Zeyde
9a5f746cc0
Refactor blk*.dat parser 2018-06-25 14:06:07 +03:00
Roman Zeyde
e505eeabd3
Monitor parsed blocks indexing progress 2018-06-25 13:22:56 +03:00
Roman Zeyde
ec844fe876
Support vectorized counter metric 2018-06-25 13:22:30 +03:00
Roman Zeyde
2cf765ba5c
Make sure no block is skipped during parsing 2018-06-25 13:11:46 +03:00
Roman Zeyde
5891133528
Improve parsing logging 2018-06-25 13:11:12 +03:00
Roman Zeyde
841a800505
Support simple histogram metric 2018-06-25 13:07:07 +03:00
Roman Zeyde
712c86d405
Fix small typo in bench_index 2018-06-25 10:52:44 +03:00
Roman Zeyde
4200648c8d
Refactor blk*.dat parser 2018-06-25 10:46:30 +03:00
Roman Zeyde
2625070cef
Allow loading indexed block hashes 2018-06-25 10:46:05 +03:00
Roman Zeyde
f3d0384caa
Allow iterating on HeaderList 2018-06-25 10:44:51 +03:00
Roman Zeyde
a1ee8ee3b8
Don't collect rows into a single list before writing to DB 2018-06-24 14:24:47 +03:00
Roman Zeyde
456e38fa20
Add fake Store impl (for tests) 2018-06-24 14:15:54 +03:00
Roman Zeyde
19c63cf06f
Limit max # of RockDB open files 2018-06-24 13:20:33 +03:00
Roman Zeyde
6f3424f734
Move block indexing into parse module 2018-06-24 13:20:09 +03:00
Roman Zeyde
8b0b4323e0
Store indexed rows into a DB 2018-06-24 09:51:18 +03:00
Roman Zeyde
df3d9cf6e2
Rename data into blob at blk*.dat parser 2018-06-23 23:36:06 +03:00
Roman Zeyde
c3cbf94551
Remove unneeded use 2018-06-23 23:36:06 +03:00
Roman Zeyde
b2b799c4ce
Fix logging during parsing 2018-06-23 23:36:06 +03:00
Roman Zeyde
8785f2747d
Add metrics to parse module 2018-06-23 23:25:32 +03:00
Roman Zeyde
75b3fc969d
Allow closing Channel's internal sender
Otherwise, we may get stuck in a deadlock (e.g. parse module):
 - the channel's receiver waits for messages
 - but the last channel's sender is kept alive (at the channel)
2018-06-23 23:25:32 +03:00
Roman Zeyde
a8e26e6e33
Revert "Update formatting following Rust 1.27 update"
This reverts commit 7372f8e239.
2018-06-23 19:57:49 +03:00
Roman Zeyde
144bc7ba6a
Improve error message when monitoring fails 2018-06-23 16:18:41 +03:00
Roman Zeyde
11da7d884b
Add benchmark for blk*.dat parser
Also, create the parser from an existing daemon
2018-06-23 16:17:04 +03:00
Roman Zeyde
f3a559824c
Make index_block() a public function
So it could be used by blk*.dat parsing
2018-06-22 18:56:21 +03:00
Roman Zeyde
47a1de666a
Parse blk*.dat files concurrently
Reading and parsing should run in separate threads.
2018-06-22 18:20:29 +03:00
Roman Zeyde
7372f8e239
Update formatting following Rust 1.27 update 2018-06-22 18:18:45 +03:00
Roman Zeyde
656eef336b
Add async parser for blk*.dat files 2018-06-21 23:56:03 +03:00
Roman Zeyde
8925857085
Move logging initialization into config.rs 2018-06-21 22:44:28 +03:00
Roman Zeyde
0171b8f63c
Allow listing bitcoind blk*.dat files 2018-06-21 22:03:01 +03:00
Roman Zeyde
9af70c95cf
Rename mempool vsize histograms 2018-06-21 14:05:43 +03:00
Roman Zeyde
4cc417232d
Allow timestamping log entries 2018-06-20 00:33:11 +03:00
Roman Zeyde
1e798c2ced
Log only to stderr
Also replace `argparse` by `clap`.
2018-06-18 12:23:19 +03:00
Roman Zeyde
74becc9046
Make sure that all fee rate bands are updated
Otherwise, the higher fee rate bands may get stuck at their previous values
2018-06-17 17:32:13 +03:00
Roman Zeyde
03bc376db6
Monitor mempool fee bands using Prometheus 2018-06-17 12:00:10 +03:00
Roman Zeyde
26eea65047
Simplify headers' handling during indexing 2018-06-17 11:08:48 +03:00
Roman Zeyde
f00c8cfe92
Add small comment about ending the stream of blocks 2018-06-17 11:03:14 +03:00
Roman Zeyde
f456ad3be7
Add a small image to README 2018-06-17 10:55:16 +03:00
Roman Zeyde
68aa3d0002
Rephrase README 2018-06-17 10:46:15 +03:00
Roman Zeyde
ff9bef20c7
Document full compaction phase 2018-06-17 10:44:27 +03:00
Roman Zeyde
29c816a32c
Add loglevels to invocation example 2018-06-17 10:38:41 +03:00
Roman Zeyde
f786c62dc5
Reformat motivation section in README 2018-06-17 10:34:39 +03:00
Roman Zeyde
b85747c0c2
Improve README 2018-06-16 22:37:51 +03:00