1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 23:08:39 +01:00
Commit graph

1245 commits

Author SHA1 Message Date
Roman Zeyde
c7eb0ba56a Support regtest in contrib/history.py 2021-08-23 11:56:51 +03:00
Roman Zeyde
7baacab560 Fixup default logging 2021-08-22 22:33:09 +03:00
Roman Zeyde
9796a4433c Log RocksDB statistics after each flush 2021-08-22 22:02:53 +03:00
Roman Zeyde
c1c1b26333 Use INFO logging level by default from server.sh 2021-08-22 17:06:07 +03:00
Roman Zeyde
ab02d731b0
Merge pull request #426 from romanz/p2p-clippy
Disable 'clippy::identity_conversion' on generated configuration module + add clippy to CI
2021-08-21 22:15:34 +03:00
Roman Zeyde
79f38d8852 Add clippy check to Dockerfile build 2021-08-21 20:20:57 +03:00
Roman Zeyde
b43173881d Disable 'clippy::identity_conversion' on generated configuration handling code
Otherwise, clippy fails with:

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:339:25
    |
339 |                 db_dir: db_dir.into(),
    |                         ^^^^^^^^^^^^^ help: consider removing `.into()`: `db_dir`
    |
    = note: `#[warn(clippy::identity_conversion)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:340:29
    |
340 |                 daemon_dir: daemon_dir.into(),
    |                             ^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `daemon_dir`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:349:37
    |
349 |                 wait_duration_secs: wait_duration_secs.into(),
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `wait_duration_secs`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:350:35
    |
350 |                 index_batch_size: index_batch_size.into(),
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `index_batch_size`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:351:29
    |
351 |                 txid_limit: txid_limit.into(),
    |                             ^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `txid_limit`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

warning: identical conversion
   --> /media/roman/3TB/roman/Code/electrs/target/debug/build/electrs-56b1e395b2bcf88c/out/configure_me_config.rs:352:32
    |
352 |                 server_banner: server_banner.into(),
    |                                ^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `server_banner`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
2021-08-21 19:10:21 +03:00
Roman Zeyde
33e2c72923 Fixup a clippy nit 2021-08-21 19:05:22 +03:00
Roman Zeyde
31765e3e49 Limit index lookups to prevent DoS for "popular" addresses 2021-08-21 18:25:31 +03:00
Roman Zeyde
1c90b75ec9 Bump version 2021-08-18 21:09:03 +03:00
Roman Zeyde
0f955781fc Drop unused compression algorithms for RocksDB 2021-08-18 21:09:03 +03:00
Roman Zeyde
321dc23767 Fix crates.io badge 2021-08-18 17:35:04 +03:00
Roman Zeyde
95134a5157 Drop unused command-line parameters 2021-08-18 17:24:14 +03:00
Roman Zeyde
ee378e8168
Merge pull request #456 from Pantamis/p2p
Use the same log verbosity levels as master
2021-08-18 14:19:05 +03:00
Pantamis
fa53180846
Small fix 2021-08-16 13:08:49 +02:00
Pantamis
aa6c5b1578
Use the same log verbosity levels as master
Current verbosity level of master: https://docs.rs/stderrlog/0.5.1/src/stderrlog/lib.rs.html#377
2021-08-16 12:58:03 +02:00
Roman Zeyde
4dd66f6713 Bump bitcoind version in Dockerfile 2021-08-15 22:27:02 +03:00
Roman Zeyde
27e7541644 Rename scripthash status 2021-08-13 20:34:32 +03:00
Roman Zeyde
1c198de0be Add a few more tests to types.rs 2021-08-13 20:34:28 +03:00
Roman Zeyde
2ab5fb1da6 Use HistoryEntry instead of {Confirmed,Mempool}Entry
Should simplify JSON serialization and height computation.
2021-08-13 20:34:14 +03:00
Roman Zeyde
7ef39f4d46
Merge pull request #450 from Kixunil/patch-4
Update relevant versions in README to 0.8.10
2021-07-30 15:56:23 +03:00
Martin Habovštiak
5b77773a54
Update relevant versions in README to 0.8.10 2021-07-30 11:50:01 +02:00
Roman Zeyde
94efd3a75d
Merge pull request #449 from romanz/p2p-fix-bip9-support
Add a workaround for latest Bitcoin Core
2021-07-30 09:00:38 +03:00
Roman Zeyde
ab860d9315 Add a workaround for latest Bitcoin Core
See https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/190.
2021-07-30 08:44:22 +03:00
Roman Zeyde
d153bfa2eb Use log verbosity level from configration
Following https://github.com/romanz/electrs/issues/440#issuecomment-886094765.
2021-07-27 20:52:03 +03:00
Roman Zeyde
50d22425bb Drop unused rows' count 2021-07-23 19:16:04 +03:00
Roman Zeyde
18e4001bb0
Merge pull request #445 from romanz/p2p-server-features
Add server.features RPC
2021-07-23 19:15:30 +03:00
Roman Zeyde
18a467b9aa Add server.features RPC 2021-07-23 18:47:00 +03:00
Roman Zeyde
d9b8691a27
Merge pull request #442 from romanz/p2p-auth
Fix `--auth` support
2021-07-22 22:24:40 +03:00
Roman Zeyde
5f0a10e517 Don't log RPC password 2021-07-22 21:55:03 +03:00
Roman Zeyde
8ef15e25b9 Fix --auth support
If not specified, use `--cookie-file`.
2021-07-22 21:55:03 +03:00
Roman Zeyde
3ef38fc6f1
Merge pull request #441 from romanz/toolchain
Use rust-toolchain in GitHub actions
2021-07-22 15:11:51 +03:00
Roman Zeyde
941760bcc9 Use rust-toolchain in GitHub actions
https://github.com/actions-rs/toolchain#the-toolchain-file
2021-07-22 14:57:07 +03:00
Roman Zeyde
89cad79882
Merge pull request #438 from Kixunil/patch-4
Set toolchain in GitHub actions to 1.41.1
2021-07-22 09:04:45 +03:00
Martin Habovštiak
5378e059f6 Set toolchain in GitHub actions to 1.41.1
This should make sure to catch compatibility mistakes in commits.
2021-07-22 08:47:38 +03:00
Roman Zeyde
8be997f208
Merge pull request #433 from SimonVrouwe/p2p
p2p doc: in bitcoin.conf maxconnections should be >11, fixes #429
2021-07-22 08:44:16 +03:00
Roman Zeyde
49031d5a60
Merge pull request #437 from Kixunil/patch-3
Delete .travis.yaml
2021-07-22 08:43:21 +03:00
Roman Zeyde
2dda68a539
Use std::f32::EPSILON to fix the build in Rust 1.41.1
Following #434
2021-07-22 08:40:53 +03:00
Martin Habovštiak
05bb22c734
Delete .travis.yaml
Travis is not used and this file is confusing.
2021-07-21 23:14:37 +02:00
Roman Zeyde
870540d618
Fix crates.io badge 2021-07-21 20:30:51 +03:00
Simon Vrouwe
3bb0fb7920 p2p doc: in bitcoin.conf maxconnections should be >11, fixes #429 2021-07-21 07:46:26 +03:00
Roman Zeyde
2510531d16 Fixup some nightly clippy lints 2021-07-20 18:56:43 +03:00
Roman Zeyde
cc3fc05dd5
Merge branch 'nightly-clippy-fixes' 2021-07-20 18:50:46 +03:00
Tobin Harding
39dce7693d
Use EPSILON to do float comparison
Clippy emits:

    error: strict comparison of `f32` or `f64`

As suggested use EPSILON to do float comparison.
2021-07-19 10:27:59 +10:00
Roman Zeyde
3bf5e5c266 Return original JSON from getrawtransaction RPC
Should fix https://github.com/romanz/electrs/issues/427
2021-07-16 19:15:37 +03:00
Tobin Harding
cfa0f71211
Implement From instead of Into
Clippy emits:

    warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true

As suggested implement `From` instead of `Into`.
2021-07-16 11:33:24 +10:00
Tobin Harding
4eab87b60e
Remove unnecessary closure
Clippy emits:

    warning: unnecessary closure used to substitute ...

As suggested use `ok_or` instead of `ok_or_else`.
2021-07-16 11:33:24 +10:00
Tobin Harding
583cbc9323
Remove unnecessary ? operator
Clippy emits:

    warning: question mark operator is useless here

As suggested remove the unnecessary `?` operator.
2021-07-16 11:33:24 +10:00
Tobin Harding
e94ff8b9a1
Remove unnecessary borrow
Clippy emits:

    warning: this expression borrows a reference

As suggested remove the unnecessary borrow.
2021-07-16 11:33:06 +10:00
Tobin Harding
9e33cb6d9b
Fix spelling of 'hyphens' 2021-07-16 10:54:48 +10:00