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

9 commits

Author SHA1 Message Date
Roman Zeyde
8285cf3fc7 Allow configuration of JSON-RPC timeout
Following https://github.com/romanz/electrs/issues/495.

Also, fix https://github.com/romanz/electrs/issues/443.
2021-09-23 17:21:57 +03:00
Martin Habovstiak
577f54195b Auto reindex when old database is detected
This implements automatic reindexing of old database, turned on by
default. When an old database is detected and `auto_reindex` is turned
on the database will be destroyed so that `electrs` can re-sync. The
user can still turn this off to check db format.

The help message says "or inconsistent" - this is not implemented but we
could in the future and it seems reasonable to explicitly state that
this option will control that thing as well.

Note: 0.8.x versions of `electrs` didn't contain format information -
so we check if the database is empty and assuming it's legacy if it's
not empty but without format information.

The code is also restructured a bit and a few tests are added.
2021-09-17 15:20:54 +03:00
Roman Zeyde
f5df00f631 Allow single-sync invocation using --sync-once commandline flag 2021-09-11 11:01:05 +03:00
Roman Zeyde
1008641838 Increase default index_lookup_limit to 200
Otherwise it fails when mining >100 regtest blocks to the same address.
2021-08-27 12:23:30 +03:00
Roman Zeyde
31765e3e49 Limit index lookups to prevent DoS for "popular" addresses 2021-08-21 18:25:31 +03:00
Roman Zeyde
95134a5157 Drop unused command-line parameters 2021-08-18 17:24:14 +03:00
Roman Zeyde
1d4ab4f325 Remove unused configuration parameters 2021-05-26 15:18:55 +03:00
Roman Zeyde
d1d6db450c Allow disabling mempool sync 2021-05-08 11:14:12 +03:00
Roman Zeyde
3780d7d48b Refactor and sync using p2p protocol 2021-04-14 18:38:59 +03:00