- Update dependencies (
anyhow
,crossbeam-channel
,crossbeam-utils
,regex
,serde
,serde from
,serde_json
,signal-hook
) - Don't log scripthash (#737)
- Update dependencies (
serde_json
,serde
,bitcoin
,bitcoincore-rpc
,rayon
,log
) - Support new Electrum release
getbalance
response format (#717)
- Add build matrix to test all features in CI (#706)
- Install and run cargo-bloat in CI (#705)
- Add guide for other Ubuntu & Debian releases to compile and install librocksdb (#696)
- Update dependencies (
anyhow
,log
,crossbeam-channel
,rayon
)
- Allow skipping default config files (#686)
- Update dependencies (
anyhow
,serde-json
)
- Update dependencies (
serde-json
,serde
,tempfile
,crossbeam-channel
) - Fix
txid
index collision handling (#653) - Use
bitcoincore_rpc
'sgetblockchaininfo
implementation (#656)
- Update dependencies (
anyhow
,serde
,serde_json
,signal-hook
) - Improve p2p receiving metrics (#633)
- Warn on attempt to connect over SSL (#634)
- Disable
index_lookup_limit
by default (#635) - Parse p2p messages in a separate thread (#638)
- Add server loop-related metrics
- Support basic RPC handling during initial sync (#543)
- Update MSRV requirements to Rust 1.48 (#603)
- Bump
env_logger
to 0.9 (#604) - Monitor RocksDB statistics via Prometheus (#605)
- Don't warn when queried with unsubscribed scripthashes (#609)
- Allow skipping merkle proofs' during subscription (#610)
- Remove
verbose
configuration (#615) - Add
curl
toDockerfile
(#624)
- Add a feature to ignore default config files (#396)
- Support Rust 1.48.0 and test on Debian 11 (#455)
- Allow multiple scripthashes' subscription in parallel(#464)
- Ignore
cargo audit
warning intiny_http
(#575) - Re-organize and split documentation (#583)
- Use
/electrs:$VERSION/
in p2p 'user-agent' (#585) - Build rocksdb with conditional SSE support (#595)
- Ignore 'addr' p2p messages (#596)
- Initialize chain height metric (#515)
- Don't shutdown write-side before all responses are sent back (#523)
- Use p2p protocol to replace waitfornewblock hidden RPC (#526)
- Use correct Prometheus buckets for size and duration (#528)
- Don't ignore signals during IBD (#533)
- Expose index DB size as a Prometheus gauge metric (#544)
- Add p2p protocol monitoring (#546)
- Fix contrib/xpub.py support for ypub/zpub keys (#549)
- Rewrite and simplify p2p message receiving thread (#550)
- Re-introduce mempool vsize and txs' count metrics (#557, #562, #563)
- Allow RPC connection before initial sync is over (#558)
IMPORTANT: This release contains major changes, please read carefully!
The four main things to watch out for:
- Database schema changed - this will cause reindex after upgrade.
mainnet
subdirectory was renamed tobitcoin
, you should deletemainnet
after successful reindex.- We now use bitcoin p2p protocol to fetch blocks - some configurations may not work.
- Trace log level now logs much more information - make sure it's not used in production.
See upgrading section of our docs to learn more.
Full list of changes:
- Add electrs logo (#510)
- Prevent panic during logging of p2p messages (#490)
- Don't collect process' Prometheus metrics by default (#492)
- Support initial sync resume (#494)
- Fix incorrect ordering of same-block transactions (#297)
- Change DB index format and use Zstd compression (instead of Snappy)
- The database will be reindexed automatically when it encounters old version (#477)
- Don't use bitcoind JSON RPC for fetching blocks (#373)
- Use p2p protocol for headers and block fetching only.
This is safer than reading
blk*dat
files and faster than JSON RPC. - Support Electrum JSON RPC batching and errors
- Use
rust-bitcoincore-rpc
crate - Increase default
index_lookup_limit
to 200 - Implement 'blockchain.scripthash.listunspent' RPC (#475)
- Update RocksDB to 6.11.4 (#473)
- Allow logging configuration via
RUST_LOG
environment variable (usingenv_logger
)
- Fail if
cookie
is specified (#478) - Move usage in README up and recommend our guide (#463)
- A bunch of improvements to issue templates (#462)
- Update dependencies (#401, #402)
- Add python example in RPC examples (#415, #417)
- Add regtest and signet networks in examples (#425)
- Clippy fixes (#430)
- CI fixes (#437, #438, #441)
- Update relevant versions (#450)
- Drop unused compression algorithms for RocksDB
- Fix JSONRPC errors' handling (#398, #390)
- Optimize Dockerfile (#387, #388, #392)
- Fix signet default port (https://github.com/romanz/electrs/b53178c140e575b0527a70ead566d50c7fe6cb1f)
- Use non-batched RPC to reduce bitcoind memory usage (#373)
- Fix inverted logic of deprecation (#379)
- Ignore individual mempool transaction fetch fails (#381)
- Increase default wait_duration_secs to 10s (#384)
- Deprecate
--cookie
configuration (@Kixunil) - Update dependencies (@Kixunil)
- Improve documentation (@Kixunil)
- Support signet (#239)
- Fix Electrum fee histogram duplicates
- Fix Electrum protocol negotiation
- Update multiple crates (@kixunil): lru, prometheus, dirs-next
- Support Rust 1.41.1 (for Debian stable)
- Update bitcoin crate (@dr-orlovsky)
- Fix a deadlock when shutting down (@kixunil)
- Add a 'blocks_dir' option (@darosior)
- Return fee for unconfirmed transactions history (for Electrum 4.0)
- Handle SIGUSR1 for external notifications
- Update to latest rust-bitcoin (@dr-orlovsky)
- Fix deadlock and refactor RPC threading (@Kixunil)
- Fix memory leak (@champo)
- Downgrade rust-rocksdb to 0.12.2 (romanz#193)
- Allow setting
--cookie-file
path via configuration (@Kixunil) - Bump rust-rocksdb to 0.13.0, using RockDB 6.2.4
- Use
configure_me
instead ofclap
to support config files, environment variables and man pages (@Kixunil) - Don't accept
--cookie
via CLI arguments (@Kixunil) - Define cache size in MB instead of number of elements (@dagurval)
- Support Rust >=1.34 (for Debian)
- Bump rust-rocksdb to 0.12.3, using RockDB 6.1.2
- Bump bitcoin crate to 0.21 (@MichelKansou)
- Allow stopping bulk indexing via SIGINT/SIGTERM
- Cache list of transaction IDs for blocks (@dagurval)
- Support Bitcoin Core 0.18
- Build with LTO
- Allow building with latest Rust (via feature flag)
- Use iterators instead of returning vectors (@Kixunil)
- Use atomics instead of
Mutex<u64>
(@Kixunil) - Better handling invalid blocks (@azuchi)
- Support Rust 1.32 (for Debian)
- Fix crash during initial sync
- Switch to
signal-hook
crate
- Update to Rust 1.34
- Prefix Prometheus metrics with 'electrs_'
- Update RocksDB crate to 0.12.1
- Update Bitcoin crate to 0.18
- Support latest bitcoind mempool entry vsize field name
- Fix "chain-trimming" reorgs
- Serve by default on IPv4 localhost
- Limit query results, to prevent RPC server to get stuck (see
--txid-limit
flag) - Update RocksDB crate to 0.11
- Update Bitcoin crate to 0.17
- Support Rust 2018 edition (1.31)
- Upgrade to Electrum protocol 1.4 (from 1.2)
- Let server banner be configurable via command-line flag
- Improve query.get_merkle_proof() performance
- Update to rust-bitcoin 0.15.1
- Use bounded LRU cache for transaction retrieval
- Support 'server.ping' and partially 'blockchain.block.header' Electrum RPC
- Don't run full compaction after initial import is over (when using JSONRPC)
- Optimize for low-memory systems by using different RocksDB settings
- Rename
--skip_bulk_import
flag to--jsonrpc-import
- Optimize block headers processing during startup
- Handle TCP disconnections during long RPCs
- Use # of CPUs for bulk indexing threads
- Update rust-bitcoin to 0.14
- Optimize block headers processing during startup
- Reconnect to bitcoind only on transient errors
- Poll mempool after transaction broadcasting
- Optimize for low-memory systems
- Improve compaction performance
- Handle disconnections from bitcoind by retrying
- Make
blk*.dat
ingestion more robust - Support regtest network
- Support more Electrum RPC methods
- Export more Prometheus metrics (CPU, RAM, file descriptors)
- Add
scripts/run.sh
for building and runningelectrs
- Add some Python tools (as API usage examples)
- Change default Prometheus monitoring ports
- Allow specifying custom bitcoind data directory
- Allow specifying JSONRPC cookie from commandline
- Improve initial bulk indexing performance
- Support 32-bit systems
- Announcement: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-July/016190.html
- Published to https://crates.io/electrs and https://docs.rs/electrs