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

255 Commits

Author SHA1 Message Date
dependabot[bot]
6f301a0167 Bump serde_json from 1.0.73 to 1.0.74
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.74)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 17:10:58 +02:00
dependabot[bot]
8d4b79a99a Bump serde from 1.0.132 to 1.0.133
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.132 to 1.0.133.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 17:10:12 +02:00
Roman Zeyde
19853a563e
Bump version 2021-12-28 15:51:08 +02:00
dependabot[bot]
bcd4ac3ce7 Bump anyhow from 1.0.51 to 1.0.52
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.51...1.0.52)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-28 15:47:26 +02:00
dependabot[bot]
1a8607bb73 Bump serde_json from 1.0.72 to 1.0.73
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.72 to 1.0.73.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.72...v1.0.73)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 20:19:44 +02:00
dependabot[bot]
e36b3c951b Bump serde from 1.0.131 to 1.0.132
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.131 to 1.0.132.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 20:19:10 +02:00
dependabot[bot]
d9d09cf126 Bump signal-hook from 0.3.12 to 0.3.13
Bumps [signal-hook](https://github.com/vorner/signal-hook) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/vorner/signal-hook/releases)
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.12...v0.3.13)

---
updated-dependencies:
- dependency-name: signal-hook
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 20:18:52 +02:00
dependabot[bot]
cb1f0c2a44 Bump signal-hook from 0.3.10 to 0.3.12
Bumps [signal-hook](https://github.com/vorner/signal-hook) from 0.3.10 to 0.3.12.
- [Release notes](https://github.com/vorner/signal-hook/releases)
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.10...v0.3.12)

---
updated-dependencies:
- dependency-name: signal-hook
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 20:38:00 +02:00
dependabot[bot]
635c9fe810 Bump serde from 1.0.130 to 1.0.131
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.130 to 1.0.131.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 16:32:32 +02:00
dependabot[bot]
3d886bffc2 Bump anyhow from 1.0.50 to 1.0.51
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.50...1.0.51)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 16:33:53 +02:00
dependabot[bot]
81aa7ad24a Bump anyhow from 1.0.47 to 1.0.50
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.47 to 1.0.50.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.47...1.0.50)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 17:15:21 +02:00
dependabot[bot]
c96cd50f59 Bump serde_json from 1.0.71 to 1.0.72
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.71...v1.0.72)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 17:15:01 +02:00
dependabot[bot]
6681b16e43 Bump serde_json from 1.0.70 to 1.0.71
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.70...v1.0.71)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 16:31:39 +02:00
dependabot[bot]
9499657005 Bump anyhow from 1.0.45 to 1.0.47
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.45 to 1.0.47.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.47)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 16:31:22 +02:00
Roman Zeyde
a5ef325d5a
Bump version 2021-11-19 09:09:53 +02:00
dependabot[bot]
220fc587ad Bump serde_json from 1.0.68 to 1.0.70
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.68 to 1.0.70.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.68...v1.0.70)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-13 14:25:54 +02:00
dependabot[bot]
3be704fd7a Bump anyhow from 1.0.44 to 1.0.45
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.44...1.0.45)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-13 14:25:41 +02:00
Roman Zeyde
3731abd7ee Bump env_logger to 0.9 2021-10-31 09:19:00 +02:00
Roman Zeyde
1318861f69 Update dependencies 2021-10-31 08:48:44 +02:00
Roman Zeyde
86488f699b
Bump version 2021-10-30 16:12:23 +03:00
Roman Zeyde
cdea505960 Build rocksdb with conditional SSE support
See 4935c28609.

Should fix https://github.com/romanz/electrs/issues/536.
2021-10-25 15:05:21 +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
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
632fe4c622 Expose index DB size as Prometheus gauge metric
Fixes #541.
2021-10-10 21:25:35 +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
60c1313c19 Bump prometheus to 0.13 2021-10-04 10:10:10 +03:00
Roman Zeyde
557911e3ba
Release 0.9.0 2021-09-30 10:13:10 +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
3041e89cd2 Bump bitcoin crate to 0.27.1
Fixes #490.
Also, reverts 52dd59c117.
2021-09-20 17:46:30 +03:00
Roman Zeyde
2ded459d0c Don't use prometheus::process_collector::ProcessCollector by default
Following #491.

It can be re-enabled by:

```
cargo build --release --features prometheus/process
```
2021-09-19 14:10:49 +03:00
Roman Zeyde
357bfe896d Use a custom release of rocksdb 2021-09-18 09:01:29 +03:00
Roman Zeyde
32b6340cc1 Use core-rpc instead of bitcoincore-rpc
https://github.com/RCasatta/rust-bitcoincore-rpc
2021-09-17 23:42: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
96be60e890 Update Cargo dependencies
Keep the following (otherwise the build breaks):

    cargo update -p clang-sys --precise 1.2.1
    cargo update -p bitflags --precise 1.2.1
2021-09-12 23:27:48 +03:00
Roman Zeyde
2f24d0774a Downgrade librocksdb-sys to 6.11.4 2021-09-10 21:04:29 +03:00
Roman Zeyde
269e756383 Next release will be 0.9.0-rc1 2021-09-09 13:39:04 +03:00
Roman Zeyde
f9346d2a1d Drop hyper dependency
https://rustsec.org/advisories/RUSTSEC-2021-0078

Use tiny_http for Prometheus instead.
2021-08-27 20:53:11 +03:00
Roman Zeyde
7409142edf Bump crossbeam-deque to 0.8.1
Using `cargo update -p crossbeam-deque --precise "0.8.1"`
2021-08-27 20:49:34 +03:00
Roman Zeyde
0516aead2a Bump bitcoin dependency to 0.27
A bit hacky solution until https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/196 is merged.
2021-08-27 19:46:56 +03:00
Roman Zeyde
cbf153fb09 Update dependencies 2021-06-25 18:12:41 +03:00
Roman Zeyde
45833c3b61 Use parking_lot::{Mutex, RwLock} instead of std::sync 2021-06-14 13:20:21 +03:00
Roman Zeyde
188aba50f1 Update bitcoin crate to 0.26.2 2021-06-08 20:17:12 +03:00
Roman Zeyde
4a09f8ac8b Update dependencies 2021-05-31 21:35:48 +03:00
Roman Zeyde
8bb6d2ab20 Drop rust-crypto unneeded dependency 2021-05-31 21:26:35 +03:00
Roman Zeyde
b0deaecdc4 Allow optional metrics collection
Can be disable by `--no-default-features`.

Also, enable RocksDB ZSTD compression (removing the feature).
2021-05-29 12:24:19 +03:00
Roman Zeyde
ce0018be57 Fix rocksdb build on RPi4 2021-05-20 18:20:14 +03:00
Roman Zeyde
df1e56b786 Update dependencies 2021-05-20 14:03:54 +03:00
Roman Zeyde
8890c4bbb7 Allow disabling prometheus' process collector
It is supported only on Linux.
2021-04-29 20:30:33 +03:00
Roman Zeyde
bc14b7cfdd Bump prometheus 2021-04-29 20:12:32 +03:00
Roman Zeyde
3780d7d48b Refactor and sync using p2p protocol 2021-04-14 18:38:59 +03:00
Roman Zeyde
aef1347859 Fix support for Rust 1.41.1
As it is the current Rust version at Debian stable:
https://packages.debian.org/stable/rustc
2020-09-28 11:13:00 +03:00
Roman Zeyde
004b2f860e Update Cargo.lock 2020-09-18 21:07:07 +03:00
Dr. Maxim Orlovsky
af6ff09a27 Removing BitcoinHash trait to adopt new bitcoin crate API 2020-09-18 18:36:04 +02:00
Roman Zeyde
840da895ce
Bump version 2020-07-01 22:50:32 +03:00
Roman Zeyde
ba12177404
Update configure_me
Following https://github.com/romanz/electrs/issues/247.
2020-06-18 18:33:25 +03:00
Roman Zeyde
7925babdd6
Revert "Update configure_me and other dependencies"
This reverts commit 687ae6c65b.
2020-06-18 18:28:17 +03:00
Roman Zeyde
1ca25531b7
Bump version 2020-06-03 18:37:01 +03:00
Roman Zeyde
687ae6c65b
Update configure_me and other dependencies 2020-06-03 17:32:50 +03:00
Dr. Maxim Orlovsky
969364af00 WIP on migrating to new bitcoin::hash_types
All types are replaced; only work on merkle types left,
which requires addition of the code
2020-04-20 00:28:23 +02:00
Roman Zeyde
cbc2214cd5
Bump version 2020-01-30 21:56:24 +02:00
Roman Zeyde
ccf6967d73
Bump version 2019-12-06 13:17:00 +02:00
Roman Zeyde
5833a9a213 Downgrade rocksdb to 0.12.2 to support more x86 CPUs
https://github.com/romanz/electrs/issues/193
2019-12-02 10:15:05 +02:00
Roman Zeyde
1498eed6bb
Bump version 2019-11-20 22:21:49 +02:00
Roman Zeyde
48622f4bfb Update rocksdb to 0.13.0 2019-11-19 15:08:32 +02:00
Roman Zeyde
ef3c387189
Bump version 2019-10-28 22:25:59 +02:00
Roman Zeyde
0b988e3afc
Update Cargo.lock 2019-10-24 22:22:45 +03:00
Martin Habovstiak
5ac315ff3c Update configure_me as well as other packages
* This should resolve #180, not sure (couldn't get past rocksdb on 1.34)
* Uses new, cleaner way of specifying `config_spec.toml`
2019-10-18 17:14:53 +02:00
Roman Zeyde
a347e6719f
Bump version 2019-10-05 12:42:16 +03:00
Roman Zeyde
b059513115
Update Cargo.lock 2019-10-01 20:19:38 +03:00
Martin Habovstiak
35b3cededc Support for user-specified onfiguration files/dirs
This commit upgrades `configure_me` and adds support for `--conf` and
`--conf-dir` parameters, which load the configuration from the specified
place.
2019-09-28 23:13:50 +02:00
Roman Zeyde
61a5af3a1b
Merge branch 'update_configure_me' of https://github.com/Kixunil/electrs into Kixunil/configure_me 2019-09-13 20:24:32 +03:00
Martin Habovstiak
bcb04196c3 Updated to configure_me 0.3.5
This update fixes the issue with hypens and additionally makes error
messages from the build script nicer.

Fixes #170
2019-09-13 18:39:39 +02:00
Roman Zeyde
ff34ee1907
Update Cargo.lock 2019-09-13 14:38:50 +03:00
Martin Habovštiak
bbc6fcb21d
Merge branch 'master' into configure_me 2019-09-07 11:33:13 +02:00
Roman Zeyde
32015a762c Use TryInto to convert slices into array
Remove dependency on `arrayref`.
2019-09-07 12:05:43 +03:00
Martin Habovstiak
0cf115d5f6 Updated Cargo.lock 2019-09-06 23:03:17 +02:00
Martin Habovstiak
ec049b9ad5 Use configure_me instead of clap
Since use of configuration files is both mmore secure and more
convenient and clap doesn't support config files, this switches to
configure_me, which supports config files, env vars and also generating
man pages.

Closes #151
2019-09-06 20:16:51 +02:00
Roman Zeyde
2860966748
Update Cargo.lock 2019-08-03 10:53:46 +03:00
Roman Zeyde
dc92454c9d
Update Cargo.lock 2019-06-13 22:46:34 +03:00
Roman Zeyde
a2a97c7714
Update Cargo.lock 2019-05-17 10:18:37 +03:00
Roman Zeyde
63689a2de6
Update Cargo.lock 2019-05-10 21:47:43 +03:00
Roman Zeyde
f8f53cebaf
Revert "Use TryInto to convert slices into array"
This reverts commit 62592dbabf to support
Rust 1.32 on Debian.
2019-05-10 21:45:19 +03:00
Roman Zeyde
1aeba092ec
Bump version 2019-05-09 11:48:02 +03:00
Roman Zeyde
2286efba87
Switch to signal-hook crate from deprecated chan-signal 2019-05-06 11:47:46 +03:00
Roman Zeyde
94e139934f
Bump version 2019-04-29 14:36:34 +03:00
Roman Zeyde
62592dbabf
Use TryInto to convert slices into array
Remove dependency on `arrayref`.
2019-04-29 13:28:10 +03:00
Roman Zeyde
bb62df8793
Update Cargo.lock 2019-04-29 10:25:53 +03:00
Roman Zeyde
8af98a3b9f
Update more crates 2019-03-28 15:10:45 +02:00
Roman Zeyde
18a1d29509
Update bitcoin to 0.18 2019-03-28 13:51:46 +02:00
Roman Zeyde
72eb1e1c62
Update rockdb to 0.12.1 2019-03-28 13:45:54 +02:00
Roman Zeyde
5497824b0e
Update Cargo.lock 2019-03-26 11:14:24 +02:00
Roman Zeyde
b2b7e1c42a
Bump version 2019-03-03 22:36:35 +02:00
Roman Zeyde
77ee699ed5
Update bitcoin crate to 0.17 2019-03-02 21:34:49 +02:00
Roman Zeyde
5037673af6
Upgrade Bitcoin crate 2019-01-21 14:47:26 +02:00
Roman Zeyde
ec7b0b7378
Upgrade Prometheus crate 2019-01-21 14:17:45 +02:00
Roman Zeyde
e996edbb82
Update RocksDB crate to 0.11 2019-01-13 10:01:29 +02:00
Roman Zeyde
5453ffe72a
Bump version 2018-12-23 09:55:54 +02:00
Roman Zeyde
0dae2f198a
Re-format latest Rust version 2018-12-07 16:36:00 +02:00
Roman Zeyde
09725e8615
Bump version 2018-11-22 11:24:23 +02:00
Roman Zeyde
582af3d697
Update rust-bitcoin to 0.15.1 and re-generate Cargo.lock 2018-11-10 21:40:07 +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
5895ad906d
Bump version 2018-10-14 14:40:55 +03:00
Roman Zeyde
27b3255298
Add Cargo.lock to git 2018-09-27 19:55:01 +03:00