Commit Graph

8 Commits

Author SHA1 Message Date
junderw
ab7cb3df11
Fix: Make error messages clearer 2023-09-29 23:00:50 -07:00
Nadav Ivgi
ced451df89
Switch to signal-hook crate from deprecated chan-signal
Backported from upstream electrs: 2286efba87
2020-08-05 13:59:17 +03:00
Nadav Ivgi
8306b2f87c
Implement Electrum server discovery
Adds the `server.add_peer` and `server.peers.subscribe` RPC commands to
support discovery of other servers, with a mechanism for running
scheduled health checks and verifying the servers availability.
2020-06-16 15:55:17 +03:00
Nadav Ivgi
6adda1bd51
electrum: Limit the number of txs returned per query
The electrum protocol does not support paging, which makes this a potential DoS
vector if no limit is set.

The limit is configurable via --electrum-txs-limit and defaults to 100.

A similar change was made in upstream electrs:
e1825fdc77
2019-12-04 05:42:25 +02:00
Roman Zeyde
7d8c0b8191
Reformat source code using Rust 1.31 2018-12-08 15:21:20 +02:00
Roman Zeyde
ea39632523
Add interrupt error kind 2018-07-29 09:39:36 +03:00
Roman Zeyde
91e4dd8b6f
Fail with ErrorKind::Connection (instead of a generic error) 2018-07-28 10:06:02 +03:00
Roman Zeyde
0d56b2ecc6
Use one error_chain definition 2018-05-25 12:00:39 +03:00