From bc96c26031cfc9384697a8dcb035fe9a76765032 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 29 Jun 2018 08:27:29 +0300 Subject: [PATCH] Update README with blk*.dat performance numbers --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 4c86a6c..c304b0a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ thus preserving the privacy of the user's addresses and balances. * Supports Electrum protocol [v1.2](https://electrumx.readthedocs.io/en/latest/protocol.html) * Maintains an index over transaction inputs and outputs, allowing fast balance queries - * Fast synchronization of the Bitcoin blockchain (~5 hours for ~184GB @ June 2018) on modest hardware (without SSD) + * Fast synchronization of the Bitcoin blockchain (~2.5 hours for ~185GB @ June 2018) on modest hardware (no SSD) * Low index storage overhead (~20%), relying on a local full node for transaction retrieval * Efficient mempool tracker (allowing better fee [estimation](https://github.com/spesmilo/electrum/blob/59c1d03f018026ac301c4e74facfc64da8ae4708/RELEASE-NOTES#L34-L46)) * Low CPU & memory usage (after initial indexing) @@ -40,20 +40,21 @@ $ bitcoind -server=1 -daemon=0 -txindex=0 -prune=0 # First build should take ~20 minutes $ cargo build --release -$ cargo run --release -- -vvv -l debug.log -Config { verbosity: 3, network_type: Mainnet, db_path: "/home/roman/Code/Bitcoin/elect-rs/db/mainnet", rpc_addr: V4(127.0.0.1:50001), monitoring_addr: V4(127.0.0.1:42024) } -DEBUG - BlockchainInfo { chain: "main", blocks: 528021, headers: 528021, bestblockhash: "0000000000000000000e322bbf044887078ddc6228e9c7c7f5c5bd93ccd8dab6", size_on_disk: 196239576671, pruned: false } -DEBUG - opening ./db/mainnet with StoreOptions { bulk_import: true } -DEBUG - applying 0 new headers from height 0 -INFO - best=0000000000000000001134b741f53f4e49e9f8073e41af6d8aaad3b849ebeee4 height=527673 @ 2018-06-16T04:03:53Z (527674 left to index) -# -DEBUG - applying 527674 new headers from height 0 -INFO - starting full compaction -# -INFO - finished full compaction -DEBUG - closing ./db/mainnet -DEBUG - opening ./db/mainnet with StoreOptions { bulk_import: false } -INFO - RPC server running on 127.0.0.1:50001 +$ cargo run --release -- -vvv --timestamp --db-dir ./db +2018-06-28T23:09:17 - DEBUG - BlockchainInfo { chain: "main", blocks: 529656, headers: 529656, bestblockhash: "0000000000000000000d6344eeaa8dece87a438c25948e9038e8fecd4c64ac0f", size_on_disk: 197723753341, pruned: false } +2018-06-28T23:09:17 - DEBUG - opening ./db/mainnet with StoreOptions { bulk_import: true } +2018-06-28T23:09:30 - INFO - indexing 1300 blk*.dat files +2018-06-29T00:28:16 - DEBUG - read 1300 blk files +2018-06-29T00:28:22 - INFO - indexed 529657 blocks +2018-06-29T00:28:23 - INFO - starting full compaction +2018-06-29T01:35:02 - INFO - finished full compaction +2018-06-29T01:35:02 - DEBUG - closing ./db/mainnet +2018-06-29T01:35:03 - DEBUG - opening ./db/mainnet with StoreOptions { bulk_import: false } +2018-06-29T01:35:12 - DEBUG - applying 529657 new headers from height 0 +2018-06-29T01:35:13 - INFO - RPC server running on 127.0.0.1:50001 +2018-06-29T01:35:14 - DEBUG - downloading new block headers (529657 already indexed) from 000000000000000000207ca53fd49f8de7f7f67dcde34af505882ab2be5d8fc5 +2018-06-29T01:35:14 - INFO - best=000000000000000000207ca53fd49f8de7f7f67dcde34af505882ab2be5d8fc5 height=529668 @ 2018-06-28T22:26:05Z (12 left to index) +2018-06-29T01:35:15 - DEBUG - applying 12 new headers from height 529657 # The index database is stored here: $ du db/