1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 18:10:51 +01:00
Commit Graph

46 Commits

Author SHA1 Message Date
Dagur Valberg Johannsson
2e9ac5c0d8 Cache list of transaction IDs for blocks 2019-07-04 08:18:16 +00:00
Roman Zeyde
2b52ef3bef
Log electrs and protocol versions 2019-05-18 10:35:47 +03:00
Roman Zeyde
5fd624c074
Fix a few clippy lints 2019-04-29 10:25:07 +03:00
Roman Zeyde
963037607b
Serve by default on 127.0.0.1
instead of 'localhost' which may resolve to IPv6 address.
2019-04-07 20:44:30 +03:00
Roman Zeyde
807a200542
Fix some Clippy warnings 2019-03-08 18:15:50 +02:00
Roman Zeyde
ed125ebe92
Change defaults addresses to 'localhost' 2019-02-25 21:10:30 +02:00
Dagur Valberg Johannsson
d614071dd4 Resolve hostname for arguments passing an address
This allows hostname to be passed, rather than only IP addresses.
2019-02-22 22:17:33 +01:00
Roman Zeyde
e1825fdc77
Fail RPC queries for "too popular" addresses
Since electrs is not optimized for this use-case, the query may take a lot
of time (on HDDs, the transaction lookups take most of the time).

The limit can be disabled by passing --txid-limit=0 flag.
2019-01-06 09:11:15 +02:00
Dagur Valberg Johannsson
1ea6a50325
Let server banner be configurable
This lets the operator set a custom server banner using the
configuration flag --server-banner. In addition it adds the daemon
version to the banner.
2018-12-23 09:34:49 +02:00
Roman Zeyde
5f2d4289dc
Support Rust 2018 edition
Builds on Rust 1.31
2018-12-08 11:40:04 +02:00
Roman Zeyde
42ab247776
Use LRU cache (instead of an unbounded HashMap) for transaction caching 2018-10-17 11:46:49 +03:00
Roman Zeyde
cb724352bc
Fix small typo in comment 2018-10-14 23:21:31 +03:00
Roman Zeyde
200ef16ed0
Expose low-memory indexing via --jsonrpc-import flag
(instead of --skip_bulk_import)
2018-09-16 09:55:42 +03:00
Roman Zeyde
18d2aef052
Re-format using Rust 1.29 2018-09-14 16:35:18 +03:00
Roman Zeyde
58ea2ed960
Allow higher concurrency for >dual core machines 2018-09-07 18:08:36 +03:00
Roman Zeyde
f62601bae3
Re-use bitcoin crate Network definitions 2018-08-29 21:53:01 +03:00
Roman Zeyde
b78e047dfa
Separate default monitoring ports for testnet and regtest 2018-08-14 10:16:01 +03:00
Roman Zeyde
ac819af52e
Allow setting index batch size from command-line
Should allow running on low-memory systems.
2018-08-06 18:44:18 +03:00
Roman Zeyde
001f7a7ba5
Update stable Rust to 1.28
Fix formatting warnings.
2018-08-04 22:25:25 +03:00
Roman Zeyde
e4556e8929
Replace to-be-deprecated std:🔚:home_dir() with dirs::home_dir()
Found by building on nightly
2018-08-04 20:37:40 +03:00
Roman Zeyde
2c167c6a7d
Merge branch 'disconnect' 2018-07-28 23:30:49 +03:00
Roman Zeyde
9ee92c823f
Read cookie as Vec<u8> (instead of String) 2018-07-28 18:12:13 +03:00
Roman Zeyde
6bb837177c
Handle missing cookie file as connection failure 2018-07-28 17:50:59 +03:00
Lawrence Nahum
883108b072
Fix help message for skip_bulk_import 2018-07-28 15:04:37 +03:00
Roman Zeyde
1d59449677
Abstract cookie handling to a trait object
This would allow re-loading JSONRPC cookie after bitcoind restart
2018-07-28 14:57:09 +03:00
Roman Zeyde
2f9b529da8
Allow skipping blk*.dat import for low-memory systems 2018-07-23 12:05:46 +03:00
Roman Zeyde
f40357e8cc
Use --network flag to customize network type
(instead of a non-flag commandline argument)
2018-07-16 09:30:51 +03:00
Roman Zeyde
d743e09a4c
Simplify DB path construction 2018-07-16 09:28:33 +03:00
Roman Zeyde
774d75bd97
Use match statement for daemon_dir construction 2018-07-16 09:18:48 +03:00
Lawrence Nahum
a85b6ba0c8
add support for regtest 2018-07-15 23:10:29 +02:00
Roman Zeyde
2d74d6d4f0
Rename a few Config members following #19
rpc_addr -> electrum_rpc_addr
daemon_rpc_url -> daemon_rpc_addr
2018-07-15 22:39:19 +03:00
Lawrence Nahum
408372cba4
make listen port and bitcoin rpc configurable 2018-07-15 19:08:15 +02:00
Roman Zeyde
1762523e1a
Allow setting JSONRPC cookie via command-line 2018-07-08 22:17:35 +03:00
Roman Zeyde
93f1b85cda
Use ms precision for logging 2018-07-07 11:02:29 +03:00
Roman Zeyde
e4a3581da1
Use Path::join() for DB directory 2018-07-06 11:49:25 +03:00
Roman Zeyde
a0030fa8ed
Remove short flag for --db-dir 2018-07-03 20:54:59 +03:00
Roman Zeyde
e637ac848f
Use ~/.bitcoin as default datadir 2018-07-03 10:51:44 +03:00
Roman Zeyde
1eb92f7372
Allow specifying custom bitcoind data directory 2018-07-03 10:09:16 +03:00
Roman Zeyde
46957a321b
Print configuration to stderr on initialization 2018-06-29 10:36:56 +03:00
Roman Zeyde
8925857085
Move logging initialization into config.rs 2018-06-21 22:44:28 +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
7bdb1491ae
Disable server auto-restart 2018-06-14 20:51:00 +03:00
Roman Zeyde
c3682ade1f
Add support for Prometheus monitoring 2018-06-12 18:47:28 +03:00
Roman Zeyde
f8a577b396
Allow specifying DB directory 2018-06-11 12:39:24 +03:00
Roman Zeyde
7d9cbc74f1
Move configuration into a separate module 2018-06-01 19:22:35 +03:00