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

1161 Commits

Author SHA1 Message Date
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
Roman Zeyde
05e4657bdc
Merge pull request #529 from romanz/fix-duplicate-history
Fix duplicate history computation
2021-10-04 12:41:31 +03:00
Roman Zeyde
8b9d412fb8 Fix duplicate history computation
Also, simplify the relevant code a bit.
2021-10-04 11:02:48 +03:00
Roman Zeyde
9770d90d22 Use correct Prometheus buckets for size and duration
Fixes #3
2021-10-04 10:35:39 +03:00
Roman Zeyde
60c1313c19 Bump prometheus to 0.13 2021-10-04 10:10:10 +03:00
Roman Zeyde
fc81d95940 Update build description for 32-bit OS 2021-10-04 09:13:03 +03:00
Roman Zeyde
239e4658af There should be one (and only one) signal handler in electrs 2021-10-03 21:15:22 +03:00
Roman Zeyde
b51d2af65b Simplify RPC handling in batches 2021-10-03 16:18:09 +03:00
Roman Zeyde
2bc61b73d0 Warn when TCP shutdown fails 2021-10-01 10:17:06 +03:00
Roman Zeyde
57552bdb78 Don't shutdown RPC connection write-side before all responses are sent 2021-09-30 21:40:33 +03:00
Roman Zeyde
e7525ca537
Merge pull request #521 from Kixunil/patch-4
Clarify upgrading to 0.9.0
2021-09-30 18:37:10 +03:00
Martin Habovštiak
759cc64978
Clarify upgrading to 0.9.0
Removing/renaming unsupported switches was not called out explicitly and it's possible that someone is using a different bitcoind address, not just port.

Closes #520
2021-09-30 16:50:21 +02:00
Roman Zeyde
ed574ab4c1
Merge pull request #515 from romanz/init-height-metric
Initialize chain height metric
2021-09-30 16:01:01 +03:00
Roman Zeyde
a07de5aa5c
Merge pull request #518 from Kixunil/patch-4
Update documentation regarding cargo features
2021-09-30 15:59:52 +03:00
Martin Habovštiak
0db0e8c8c1
Update documentation regarding cargo features
With new `rocksdb` it's no longer necessary to disable features when dynamically linking.
Thus this change removes instructions to add `--no-default-features`.
However there's now a new feature called `metrics` which enables Prometheus.
This change also documents this and explains how to turn it off.

Closes #517
2021-09-30 14:09:26 +02:00
Roman Zeyde
34a8549d2e Fix description
Fix https://github.com/romanz/electrs/issues/516
2021-09-30 13:58:49 +03:00
Roman Zeyde
144487a912 Initialize chain height metric
Otherwise, it will 0 until the a new block is indexed.

Following https://github.com/romanz/electrs/issues/505#issuecomment-930651597.
2021-09-30 12:05:24 +03:00
Roman Zeyde
557911e3ba
Release 0.9.0 2021-09-30 10:13:10 +03:00
Roman Zeyde
8df21a4f7c
Merge pull request #514 from Kixunil/dbdir-doc
Detailed documentation of db_dir
2021-09-30 10:10:48 +03:00
Martin Habovstiak
5537c963c0 Detailed documentation of db_dir
This warns users that they shouldn't touch `db_dir` internals except for
deleting the old `mainnet` database. It explains in details how to do
upgrade and deleting properly, calls it out in release notes and fixes
small style mistake in nearby heading.

It can be thought of as more explicit/detailed version of
8b8ebea0018d3e9a97ce965845b1914df4b4d8a4 or a textual alternative to
PR #513.
2021-09-29 22:15:53 +02:00
Roman Zeyde
6fff80e9af
Merge pull request #511 from DominoPrusa/master
fixed color in logo and icon export
2021-09-28 21:00:41 +03:00
Dominik Průša
43b944da15 fixed color in logo and icon export 2021-09-28 19:36:06 +02:00
Roman Zeyde
d97479ad6b Fixup https://github.com/DominoPrusa link 2021-09-28 20:01:39 +03:00
Roman Zeyde
30a409ff4a Add electrs logo
Provided by Dominik Průša (https://github.com/DominoPrusa)
under the MIT license.
2021-09-28 19:30:21 +03:00
Roman Zeyde
a28eebcf00 Fixup timeout log warning 2021-09-28 08:37:37 +03:00
Roman Zeyde
ac16b9d3b6 Don't fail on HTTP timeouts from bitcoind RPC
It should be OK to retry in case of a RPC timeout.

Should help with https://github.com/romanz/electrs/issues/495.
2021-09-27 20:44:24 +03:00
Roman Zeyde
0e2766c264 Disable setting TRACE verbosity by '-vvvv'
Should fix https://github.com/romanz/electrs/issues/355#issuecomment-926903119.

It still can be set using:
```
RUST_LOG=electrs=TRACE target/release/electrs <args>
```

See https://docs.rs/env_logger for more usage examples.
2021-09-26 12:46:12 +03:00
Roman Zeyde
a10c3244da Add gauge metric to export latest block height 2021-09-26 12:05:13 +03:00
Roman Zeyde
94de4345b4 Update indexing duration histogram metrics 2021-09-26 12:04:12 +03:00
Roman Zeyde
7b52eadf82 Drop unused metrics 2021-09-26 11:53:10 +03:00
Roman Zeyde
f0e9549650
Merge pull request #501 from romanz/simpler-index
Use blocks' height iterator (instead of a map)
2021-09-26 09:42:34 +03:00
Roman Zeyde
9b2d40966d Use blocks' height iterator (instead of a map)
We already assume that blocks are processed in ascending order.
2021-09-26 00:02:57 +03:00
Roman Zeyde
c902e4e545
Merge pull request #504 from Kixunil/patch-4
Warn about log level
2021-09-25 22:34:35 +03:00
Martin Habovštiak
c299183289
Explain verbose level in usage 2021-09-25 19:46:01 +02:00
Martin Habovštiak
cb53ec2938
Warn about log level
Some people still incorrectly use trace log level and get burned by this update.
2021-09-25 19:39:39 +02:00
Roman Zeyde
f420188650 Add a release note about db/mainnet -> db/bitcoin rename
https://github.com/romanz/electrs/issues/502
2021-09-25 18:07:17 +03:00
Roman Zeyde
74b94d80e1 Fix a few clippy lints 2021-09-23 23:20:25 +03:00
Roman Zeyde
7c55c784c3 Use bitcoincore-rpc 0.14.0 release
Since it now uses `bitcoin` 0.27
2021-09-23 18:37:02 +03:00
Roman Zeyde
5ae3d6526e Update 0.9.0-rc2 release notes 2021-09-23 18:09:58 +03:00
Roman Zeyde
a8a4ba280e Use latest cargo-audit 2021-09-23 17:53:20 +03:00
Roman Zeyde
f5bd245569 Close index DB if interrupted during initial sync
It should allow resuming initial sync (fixing #494).
2021-09-23 17:40:14 +03:00
Roman Zeyde
c7133dd9e7 Refactor index_batch_size usage 2021-09-23 17:40:14 +03:00
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
Roman Zeyde
492d6aa275 Don't fail if wait_for_new_block RPC timeouts
Following #495.
2021-09-21 13:11:56 +03:00
Roman Zeyde
3041e89cd2 Bump bitcoin crate to 0.27.1
Fixes #490.
Also, reverts 52dd59c117.
2021-09-20 17:46:30 +03:00