conduition
c2c7141ef3
execute mempool scanning in separate thread
...
The mempool scanning procedure can now be launched
in a separate thread, while mempool updates are
applied synchronously in the main thread.
2023-12-12 21:32:08 +02:00
conduition
060c548b06
logically separate mempool sync polling and mutation
...
The existing Mempool::sync logic maintained a mutable reference
to the Mempool even though it's not actually using that
mutable privilege for the majority of the time that the sync
method is running. We separate the fetching the polling and
applying processes, so that we can make mempool polling async.
2023-12-12 21:22:24 +02:00
Roman Zeyde
db46643df1
Remove Mempool::new and Mempool::empty ( #972 )
2023-12-12 08:11:28 +02:00
conduition
c228115dec
avoid redundant recomputation of fee histogram
...
FeeHistogram was being recomputed from scratch on every
mempool.sync call. This was unnecessary. Instead we can
mutate the existing histogram state for each new
transaction added or removed from the mempool.
2023-12-10 23:45:39 +00:00
conduition
d18b815960
avoid redundant data returned from filter_map
2023-12-10 23:45:34 +00:00
Roman Zeyde
74aa403bba
Bump bitcoind to 26.0 ( #969 )
2023-12-09 20:20:25 +02:00
Martin Habovštiak
d84d7d672c
Explain behavior of config file loading ( #964 )
...
Previously it was not clear from the documentation that configuration files are optional or why non-not-exist errors are hard errors. This change adds the information about these important properties of config files to the documentation.
2023-12-03 11:35:43 +02:00
Martin Habovštiak
b24fcae186
Improve config documentation ( #963 )
...
The `--skip-default-conf-files` flag is often desired but people may miss it because it's not in the doc, so this documents it.
Further, to avoid problems with people missing flags this adds a recommendation to run `electrs --help` so if we ever forget to update the doc people will learn about the new arguments anyway.
Following #962 .
2023-12-01 20:12:59 +02:00
Roman Zeyde
4f76c630e9
Use Option<> for 'db_log_dir' config
...
Following https://github.com/romanz/electrs/pull/959#discussion_r1405387423
2023-11-28 20:13:03 +02:00
dependabot[bot]
be2026fcd8
Bump env_logger from 0.10.0 to 0.10.1 ( #955 )
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.10.1 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 20:04:01 +02:00
Roman Zeyde
4af15e90be
Don't flush when nothing is written to DB
...
Fixes #680 .
2023-11-24 19:50:38 +02:00
Roman Zeyde
87752803ae
Allow setting RocksDB log directory
...
Following https://github.com/romanz/electrs/issues/680#issuecomment-1824841535 .
2023-11-24 16:16:31 +02:00
Roman Zeyde
3384b2f828
Remove redundant closure
2023-11-24 13:26:14 +02:00
Roman Zeyde
a01d58c35d
Fix log level during mempool sync interruption
...
https://github.com/romanz/electrs/pull/917#pullrequestreview-1736677655
2023-11-17 16:40:32 +02:00
Tobin C. Harding
b6271ba3af
Upgrade bitcoin
...
Upgrade dependencies required to use the recently released
`rust-bitcoin v0.31.0` release.
Co-authored-by: Roman Zeyde <me@romanzey.de>
2023-11-15 20:31:09 +02:00
dependabot[bot]
56aad37c2b
Bump serde_json from 1.0.107 to 1.0.108 ( #953 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 21:13:25 +02:00
dependabot[bot]
afd5fa285c
Bump serde_json from 1.0.104 to 1.0.107 ( #951 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.104 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 15:57:51 +02:00
Roman Zeyde
7868c4813c
Bump version
2023-10-31 20:36:50 +02:00
dependabot[bot]
1c5c2e2dd2
Bump bitcoin_slices from 0.6.0 to 0.6.2
...
Bumps [bitcoin_slices](https://github.com/RCasatta/bitcoin_slices ) from 0.6.0 to 0.6.2.
- [Commits](https://github.com/RCasatta/bitcoin_slices/commits/0.6.2 )
---
updated-dependencies:
- dependency-name: bitcoin_slices
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 13:36:37 +00:00
Roman Zeyde
81e43b695a
Drop Cirrus CI due to flakiness ( #948 )
2023-10-27 23:03:19 +03:00
dependabot[bot]
4b5434fceb
Bump rustix from 0.36.15 to 0.36.17 ( #947 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.36.15 to 0.36.17.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.15...v0.36.17 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 21:18:26 +03:00
Roman Zeyde
3c4b0f190f
Update 'rust-toolchain' file to TOML format ( #946 )
...
https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
2023-10-27 20:52:06 +03:00
Roman Zeyde
4356f17b65
Update 'tempfile' dependency ( #945 )
2023-10-27 20:51:53 +03:00
fanquake
ff4d128f11
Bump CI bitcoind to 25.1 ( #943 )
2023-10-23 17:19:38 +03:00
Roman Zeyde
8ac52f9e09
Fix build failure on Raspberry Pi 4 (32bit) ( #940 )
2023-10-13 00:35:14 +03:00
Roman Zeyde
703e400fe5
Fix electrum integration test script
...
Following 2e52b17a43
2023-10-10 22:08:20 +03:00
Roman Zeyde
a772b52891
Merge pull request #937 from romanz/update
...
Update dependencies
2023-10-07 15:44:42 +03:00
Roman Zeyde
b0e88602a5
Bump 'tempfile' dependency version
2023-10-07 14:57:03 +03:00
Roman Zeyde
de1f794411
Bump 'rayon' dependency version
2023-10-07 14:56:53 +03:00
Roman Zeyde
d0b69f0dc4
Merge pull request #934 from newearthmartin/patch-1
...
Update config.md
2023-09-12 06:45:22 +03:00
Martin Massera
2f7727bac4
Added note about tunneling to config.md
2023-09-11 23:25:03 -03:00
Martin Massera
279307a2f8
Update config.md
...
Documentation for connecting an Electrum client
2023-09-11 21:54:28 -03:00
Roman Zeyde
3c6028ed4d
Return first txid-matching transaction ( #933 )
2023-09-01 16:27:42 +03:00
Roman Zeyde
6f82108323
Drop 'recursion_limit' definition ( #929 )
...
It's a leftover from https://github.com/rust-lang-deprecated/error-chain
2023-08-29 11:39:01 +03:00
Roman Zeyde
1b06226c17
Add txid collision scanner ( #928 )
2023-08-28 13:55:41 +03:00
Roman Zeyde
ff984fb967
Optimize indexing via bitcoin_slices
( #927 )
2023-08-25 11:21:47 +03:00
Riccardo Casatta
acb49973f6
Optimize index querying via bitcoin_slices
( #913 )
...
Co-authored-by: Roman Zeyde <me@romanzey.de>
2023-08-22 20:46:53 +03:00
Roman Zeyde
317de62a43
Avoid precompiled 'serde_derive' >=1.0.172
...
Following https://github.com/serde-rs/serde/issues/2538 .
2023-08-19 11:17:49 +03:00
Roman Zeyde
1663bddf8a
Update expected sync duration for Aug 2023 ( #923 )
2023-08-19 00:09:38 +03:00
Roman Zeyde
8ad3ae0e9b
Allow setting DB name via server.sh
2023-08-18 22:03:16 +03:00
Roman Zeyde
b61537a3f3
Pass --password=''
when invoking electrum CLI ( #922 )
2023-08-18 22:01:49 +03:00
Roman Zeyde
59143fdd7c
Allow exiting mempool sync on SIGINT ( #917 )
2023-08-15 20:46:10 +03:00
Roman Zeyde
a1460ec4a9
Update dependencies ( #916 )
2023-08-13 21:13:05 +03:00
Roman Zeyde
aa08c2ad9a
Allow skipping merkle proof downloads in history.py
( #915 )
2023-08-11 23:08:02 +03:00
Roman Zeyde
6171dd627c
Remove IndexResult and index into db::WriteBatch ( #914 )
...
Co-authored-by: Riccardo Casatta <riccardo@casatta.it>
2023-07-28 19:43:40 +03:00
Andreas Schildbach
7852dd3697
Dockerfile: re-add curl for the second time, so it can be used for docker health checks ( #912 )
2023-07-26 15:28:03 +03:00
Riccardo Casatta
fae1e61946
Reuse buffer in p2p handling ( #910 )
2023-07-23 09:57:50 +03:00
Roman Zeyde
b041adf9bc
Preallocate serialized vector of HashPrefixRow ( #909 )
...
This should save 2 reallocation for row since serialize will allocate without
capacity (should be 4) and every time will double, so it will need other 2
re-allocation for a total of 3. While here is 1.
Do the same for HeaderRow.
Co-authored-by: Riccardo Casatta <riccardo@casatta.it>
2023-07-22 22:45:22 +03:00
Roman Zeyde
77f761ea7c
Less verbose logging when bitcoind is warming up ( #908 )
2023-07-22 20:27:03 +03:00
Roman Zeyde
cfaed09c08
Update dependencies
2023-07-21 21:26:04 +03:00