Roman Zeyde
86408dfa6a
Ignore a few more extensions
2021-10-20 10:14:29 +03:00
Roman Zeyde
fd7d5e8ac5
Fix CI badge URL
2021-10-19 22:27:37 +03:00
Roman Zeyde
fbb8d7b959
Merge pull request #576 from romanz/update-deps
...
Update tiny_http & and drop `cargo audit` CI for now
2021-10-19 21:32:09 +03:00
Roman Zeyde
bdbe3a96a5
Drop cargo audit
action for now
...
Not sure if it's possible to ignore `RUSTSEC-2020-0159` on GitHub CI.
2021-10-19 21:18:58 +03:00
Roman Zeyde
be071b2111
Update tiny_http
...
Fix #575
2021-10-19 20:17:32 +03:00
Roman Zeyde
e3ea373472
Release 0.9.1
2021-10-18 11:28:00 +03:00
Roman Zeyde
c411280d34
Fix "fake" gauge metrics API
2021-10-18 11:27:52 +03:00
Roman Zeyde
b86ec94210
Update dependencies
...
Keep the following pinned:
```
$ cargo update -p bitflags --precise 1.2.1
$ cargo update -p clang-sys --precise 1.2.1
```
2021-10-17 21:53:58 +03:00
Roman Zeyde
9c08e09127
Merge pull request #563 from romanz/mempool-metrics
...
Add <1 sat/vbyte mempool fee band
2021-10-17 13:01:34 +03:00
Roman Zeyde
7ceac6446d
Add <1 sat/vbyte mempool fee band
2021-10-16 22:51:46 +03:00
Roman Zeyde
092ac7a0fd
Print more information when starting electrs
2021-10-16 13:07:49 +03:00
Roman Zeyde
66b6bdb408
Update release notes
2021-10-16 12:57:07 +03:00
Roman Zeyde
7cb037f759
Merge pull request #562 from romanz/mempool-metrics
...
Export mempool metrics grouped by fee band
2021-10-16 12:55:46 +03:00
Roman Zeyde
4440c1646a
Export mempool metrics grouped by fee band
...
Fixes #551
2021-10-16 12:37:16 +03:00
Roman Zeyde
44cda47f39
Update release notes
2021-10-15 22:20:23 +03:00
Roman Zeyde
c38341f9ab
Use an Arc<TcpStream> instead of cloning in p2p.rs
2021-10-15 20:13:38 +03:00
Roman Zeyde
cf0acfb6aa
Merge pull request #558 from romanz/init-rpc
...
Call Tracker::sync once in server.rs
2021-10-15 16:53:05 +03:00
Roman Zeyde
12496c44be
Call Tracker::sync only in server.rs
...
This way, the RPC server is running (but not responding) during initial sync.
Following https://github.com/romanz/electrs/issues/534 .
2021-10-15 16:37:31 +03:00
Roman Zeyde
9eb415e94d
Merge pull request #550 from romanz/p2p-perf
...
Rewrite and simplify p2p message receiving thread
2021-10-15 16:22:28 +03:00
Frederic Lepied
b114826725
contrib/xpub.py support ypub/zpub
2021-10-15 15:05:18 +03:00
Roman Zeyde
05e0221b8e
Rewrite and simplify p2p message receiving thread
...
Add a few more utilization metrics.
2021-10-15 14:47:04 +03:00
Roman Zeyde
98b3f21656
Merge pull request #557 from romanz/mempool-metrics
...
Re-introduce mempool vsize and txs' count metrics
2021-10-15 11:17:39 +03:00
Roman Zeyde
06e9b4d13d
Re-introduce mempool vsize and txs' count metrics
...
Fixes #551
2021-10-15 10:53:58 +03:00
Roman Zeyde
121a4bcc91
Re-introduce mempool vsize and txs' count metrics' -m Fixes
2021-10-15 10:51:05 +03:00
Roman Zeyde
e4256a0d2f
Rename fee histogram struct
2021-10-15 10:45:14 +03:00
Roman Zeyde
2ce22bd2a3
Support testnet and regtest in contrib/xpub.py
2021-10-14 18:44:16 +03:00
Roman Zeyde
cd0531b8b7
Copy StreamReader implementation into our crate
2021-10-14 09:20:32 +03:00
Roman Zeyde
f927e237f7
Fix contrib/xpub.py
...
Following https://github.com/romanz/electrs/issues/549
2021-10-14 08:56:40 +03:00
Roman Zeyde
e76b9df1d7
Merge pull request #548 from flepied/fix-history-contrib
...
enhance contribs to allow to connect to an external server
2021-10-13 18:33:50 +03:00
Frederic Lepied
74f13419a8
enhance contribs to allow to connect to an external server
2021-10-13 15:06:03 +02:00
Roman Zeyde
b94c98fc31
Merge pull request #546 from romanz/p2p-metrics
...
Add p2p protocol monitoring
2021-10-12 17:46:22 +03:00
Roman Zeyde
c880988bd7
Add p2p protocol monitoring
2021-10-12 10:58:17 +03:00
Roman Zeyde
173ea45329
Don't connect twice to bitcoind
...
It was added when JSON RPC was using a persistent connection,
disconnecting after full compaction (which took a while).
Now, p2p handling is running in a separate thread and JSON RPC
is creating a new connection for each request (#538 ).
2021-10-12 09:58:25 +03:00
Roman Zeyde
f288fd2116
Allow --reindex-last-blocks to be larger than height
2021-10-11 13:17:20 +03:00
Roman Zeyde
2d2544f502
Merge pull request #545 from romanz/reindex-blocks
...
Allow reindexing last blocks, mainly for sync logic testing
2021-10-11 12:01:10 +03:00
Roman Zeyde
2a10f5fd99
Allow reindexing last blocks, mainly for sync logic testing
...
Also, added clippy exception for:
```
warning: the function has a cognitive complexity of (26/25)
--> ./electrs/target/release/build/electrs-600a795995255594/out/configure_me_config.rs:453:9
|
453 | / pub fn merge_args<I: IntoIterator<Item=::std::ffi::OsString>>(&mut self, args: I) -> Result<impl Iterator<Item=::std::ffi::OsString>, super::Error> {
454 | | let mut iter = args.into_iter().fuse();
455 | | self._program_path = iter.next().map(Into::into);
456 | |
... |
571 | | Ok(None.into_iter().chain(iter))
572 | | }
| |_________^
|
= note: `#[warn(clippy::cognitive_complexity)]` on by default
= help: you could split it up into multiple smaller functions
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
```
2021-10-11 11:10:23 +03:00
Roman Zeyde
6755b4c7f1
Merge pull request #544 from romanz/db-size
...
Expose index DB size as a Prometheus gauge metric
2021-10-11 09:08:57 +03:00
Roman Zeyde
632fe4c622
Expose index DB size as Prometheus gauge metric
...
Fixes #541 .
2021-10-10 21:25:35 +03:00
Roman Zeyde
a552a2bb2d
Allow disabling Electrum RPC while continuing indexing
2021-10-09 13:49:56 +03:00
Roman Zeyde
fbda004ecb
Drop ELECTRS_VERBOSE and ELECTRS_TIMESTAMP from Docker usage example
2021-10-07 21:36:50 +03:00
Roman Zeyde
2ea514373e
Actually, there is no need to define any ServiceFlags
at p2p connection
2021-10-06 22:42:07 +03:00
Roman Zeyde
640202ecb3
No need to define ServiceFlags::NETWORK
at p2p connection
2021-10-06 22:39:12 +03:00
Roman Zeyde
45a91f9b1b
Don't ignore signals during IBD
...
Fixes #532 .
Also, don't fail electrs when exiting due to SIGINT/SIGTERM.
2021-10-06 11:20:37 +03:00
Roman Zeyde
f896f9c2a4
Add a few comments following https://github.com/romanz/electrs/pull/526 review
2021-10-06 09:29:00 +03:00
Roman Zeyde
ca93d3c75c
Fix process-related metrics collection feature
...
Previously, it wasn't enabled when building with:
```
cargo build --all --features "prometheus/process" --release
```
2021-10-05 13:14:56 +03:00
Roman Zeyde
1402d290dc
Use p2p protocol to replace waitfornewblock
hidden RPC
...
Fixes https://github.com/romanz/electrs/issues/522 .
2021-10-04 21:07:50 +03:00
Roman Zeyde
1a7d624e6a
Monitor cached transactions' size
2021-10-04 18:40:47 +03:00
Roman Zeyde
9a45d9c798
Fix cache methods' scope
2021-10-04 18:40:47 +03:00
Roman Zeyde
ced9796bde
Deduplicate default metrics' buckets
2021-10-04 18:40:47 +03:00
Roman Zeyde
af169e7e63
Merge pull request #528 from romanz/prometheus-buckets
...
Use correct Prometheus buckets for size and duration
2021-10-04 12:42:09 +03:00