15 lines
561 B
Markdown
15 lines
561 B
Markdown
# Electrum
|
|
|
|
* Snapshot DB after successful indexing - and run queries on the latest snapshot
|
|
* Update height to -1 for txns with any [unconfirmed input](https://electrumx.readthedocs.io/en/latest/protocol-basics.html#status)
|
|
|
|
# Rust
|
|
|
|
* Use [bytes](https://carllerche.github.io/bytes/bytes/index.html) instead of `Vec<u8>` when possible
|
|
* Use generators instead of vectors
|
|
* Use proper HTTP parser for JSONRPC replies over persistent connection
|
|
|
|
# Performance
|
|
|
|
* Consider https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide#difference-of-spinning-disk
|