1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-25 07:17:41 +01:00
Commit graph

871 commits

Author SHA1 Message Date
Roman Zeyde
e0eae37333
Merge branch 'update-doc' 2020-11-15 20:42:56 +02:00
Roman Zeyde
782c4c226b
Fix a small typo 2020-11-15 20:42:24 +02:00
Martin Habovstiak
d98f746404 Updated documentation
* The mentioned Debian repository is now considered beta, make the
  wording much less scary.
* Documented how to link rocksdb dynamically and what are the pros/cons
* Documented how to cross compile
* Added `--locked` parameter to `cargo build` to prevent `cargo` from
  updating lock file
* Use `./target/release/electrs` instead of `cargo run` to avoid
  rebuilding footguns
* Added a link to in-depth explanation of cookie security
2020-11-14 12:26:20 +01:00
Martin Habovstiak
d68c191f92 Updated librocksdb-sys and bindgen
These new versions contain backports of fixes that make dynamic linking
less painful and cross compilation possible.
2020-11-14 10:27:07 +01:00
Roman Zeyde
7bcd20cd56
Fixup CI 2020-11-06 16:55:46 +02:00
Roman Zeyde
c88a0dc331
Fix #317 2020-11-06 16:28:39 +02:00
Roman Zeyde
8f2f53303a
Fix #314 2020-11-05 16:26:40 +02:00
Roman Zeyde
a25d8afe17
cargo fmt 2020-11-05 16:26:21 +02:00
Roman Zeyde
e0fa571a5c
Merge remote-tracking branch 'kixunil/rocksdb-optional-compression' 2020-11-05 10:35:24 +02:00
Roman Zeyde
453360fdb1
Merge remote-tracking branch 'k3tan/patch-1' 2020-11-05 10:32:32 +02:00
Martin Habovstiak
0b7d9e16e9 Make rocksdb compression algos optional
This makes the compression algorithms optional, but on by default to
keep the behavior. While one might think this just decreases the size a
bit, it has another advantage: when linking with system library it's not
needed to specify the paths of all these libraries because they are already
compiled in the system library.
2020-11-05 00:33:20 +01:00
k3tan172
60a211af38
Update usage.md 2020-10-16 07:30:30 +11:00
k3tan172
32c5fd3a61
Update usage.md
For compilation of electrs to work in Ubuntu 20.04 build-essential package needs to be installed.
2020-10-14 20:03:19 +11:00
Franck Royer
3c4cf72960 Set Rust toolchain to 1.41.1
The project does not compile on 1.34.0 because it uses
the lockfile format introduced in 1.38.0.

Do note that Debian stable at this time uses Rust 1.41.1.

Setting a specific toolchain version is good practice for
binary project and remove potential issues of incompatible
toolchain for users trying to build the project.
2020-09-28 13:27:15 +03:00
Franck Royer
5d8f104cce Remove Circle CI config.yml
As it is not used and hence is misleading.
2020-09-28 13:26:18 +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
d01b3c6f6e Merge remote-tracking branch 'kixunil/transaction_get_blockhash' 2020-09-18 21:47:54 +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
f9d8cabc13
Merge pull request #299 from jamesob/master
docker: account for host/container permission differences
2020-09-18 17:11:27 +03:00
James O'Beirne
15ba15a69e
docker: account for host/container permission differences 2020-09-18 08:50:04 -04:00
Roman Zeyde
c5eac91b36
Remove 'cargo build' from Dockerfile 2020-08-14 15:23:22 +03:00
Martin Habovstiak
a0a3d4f939 Add blockchain.transaction.get_confirmed_blockhash
This adds a new RPC method that enables users to fetch the block hash
for given txid. It can thus be used to emulate `txindex=1` as explained
in the related issue.

Closes #287
2020-08-04 13:21:30 +02:00
Roman Zeyde
39111665d0
Reduce log verbosity for missing mempool transactions 2020-07-31 20:12:24 +03:00
Roman Zeyde
33aaf7ddc6
A few small fixes 2020-07-31 14:13:17 +03:00
Martin Habovstiak
4764dccbbe Drop receiver in handle_replies
When `Message::Done` was received before the cleanup loop executed it
led to a deadlock since the loop didn't see the receiving end being
disconnected and it also had strong reference via `Arc` preventing it
from dropping.

This change solves the problem by splitting the channel and only keeping
the sender in `Connection`. The reciver is passed to `handle_replies` as
an extra argument, making sure it will be used exactly once.

The main advantage of this method over trying to keep the receiver
inside `Connection` is that it hanles cases when the thread panicks and
possibly forgetting explicit close in future refactors. Another
advantage is being able to remove one `Arc::clone` and I have an idea
for removing locking on `senders` in the future too.

Closes #283
2020-07-28 18:43:08 +02:00
Roman Zeyde
3f750cf8ce
Don't wait for IBD on regtest 2020-07-25 21:14:26 +03:00
Roman Zeyde
521914a853
Fix clippy warnings 2020-07-25 20:52:07 +03:00
Roman Zeyde
d4f542b5e1
Reformat 2020-07-25 20:28:54 +03:00
Roman Zeyde
25aaa6b89d
No need to spawn a thread for writing during bulk indexing 2020-07-25 20:28:10 +03:00
Roman Zeyde
cfa578286c
Add RPC usage example 2020-07-25 12:35:57 +03:00
Roman Zeyde
9c0d69af6c
Fix type in metrics' description 2020-07-19 10:03:19 +03:00
Roman Zeyde
3e25d260be
Merge pull request #276 from CandleHater/patch-1
Typo fix
2020-07-18 21:13:28 +03:00
Candle
ca81f753f1
Typo fix
"bitcoind" was misspelled
2020-07-17 11:38:14 +00:00
Roman Zeyde
fb27cf772f
Fix README.md 2020-07-17 11:21:17 +03:00
Roman Zeyde
e3847ebd1b
Ignore more patterns 2020-07-13 08:38:46 +03:00
David Parrish
4f46919f35
Update rust version for Dockerfile to 1.44.1 2020-07-06 16:16:34 -04:00
David Parrish
0980b44c6f
Apply hadolint recommendations 2020-07-06 16:16:01 -04:00
Roman Zeyde
840da895ce
Bump version 2020-07-01 22:50:32 +03:00
Antoine Poinsot
f1d611fe19
Add a 'blocks_dir' option analogous to bitcoind's '-blocksdir'
The '-blocksdir' startup option allows one to store blk*.dat on an
external disk, while keeping the index (blocks/index/) on the same disk.

This makes electrs aware of such an option, while still keeping the same
default behaviour (blk*.dat in '<config_dir>/blocks/').

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-30 14:46:25 +02:00
Roman Zeyde
fac73dc1bf
Merge branch 'fix-subscriptions' 2020-06-28 12:32:12 +03:00
Roman Zeyde
e55381fa66
Return fee for unconfirmed transactions history
Following https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html#blockchain.scripthash.get_mempool

Otherwise, the client will disconnect:
https://github.com/spesmilo/electrum/issues/6289
2020-06-28 09:21:31 +03:00
Roman Zeyde
e3cc93ff4d
Update # of subscriptions correctly 2020-06-27 22:11:37 +03:00
Roman Zeyde
536e920c1f
use Vec::truncate() in HeaderList::apply() 2020-06-23 15:07:18 +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
7125eba95e
Merge branch 'handle-sigusr1' 2020-06-17 08:41:35 +03:00
Roman Zeyde
5ae93db59e
Allow configuring wait duration 2020-06-13 18:15:03 +03:00
Roman Zeyde
ce3be37679
Handle SIGUSR1 for external notifications 2020-06-13 18:14:05 +03:00
Roman Zeyde
2f2b1c9ef1
Ignore .env 2020-06-12 17:06:13 +03:00