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

968 commits

Author SHA1 Message Date
Roman Zeyde
66f53e52b9 Fix a few clippy warnings 2021-05-17 14:11:49 +03:00
Roman Zeyde
271a7d4cd1 Add more logging in case of p2p errors 2021-05-14 13:26:57 +03:00
Roman Zeyde
32e5829d82 Link to electrumx-spesmilo.readthedocs.io 2021-05-09 14:05:01 +03:00
Roman Zeyde
d1d6db450c Allow disabling mempool sync 2021-05-08 11:14:12 +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
040e685c20 Acquire lock closer to its usage 2021-04-23 21:00:20 +03:00
Roman Zeyde
d0b00a84bc Test merkle proof generation using 2 mainnet blocks 2021-04-23 20:59:36 +03:00
Roman Zeyde
d442501e26 Fixup Rust version in Dockerfile 2021-04-16 09:46:35 +03:00
Roman Zeyde
3780d7d48b Refactor and sync using p2p protocol 2021-04-14 18:38:59 +03: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
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
Roman Zeyde
366dfa020f
Use correct daemon_dir for cookie getter 2020-05-23 20:58:33 +03:00