From 1f8b6df531fb4847e51e197b8edcf7c1dc15bf23 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 3 Jun 2018 20:42:01 +0300 Subject: [PATCH] Re-format several files --- Cargo.toml | 1 + README.rst | 4 ++-- TODO.txt => TODO.rst | 12 ++++++++---- src/lib.rs | 1 + 4 files changed, 12 insertions(+), 6 deletions(-) rename TODO.txt => TODO.rst (90%) diff --git a/Cargo.toml b/Cargo.toml index 1538d14..aa6c2ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,5 @@ serde = "1.0" serde_derive = "1.0" serde_json = "1.0" simplelog = "0.5" +sled = "0.15" time = "0.1" diff --git a/README.rst b/README.rst index 2af93e5..0287105 100644 --- a/README.rst +++ b/README.rst @@ -1,2 +1,2 @@ -Bitcoin indexer and Electrum Server in Rust -=========================================== +Electrum Server in Rust +======================= diff --git a/TODO.txt b/TODO.rst similarity index 90% rename from TODO.txt rename to TODO.rst index 512131f..45b136d 100644 --- a/TODO.txt +++ b/TODO.rst @@ -1,19 +1,23 @@ -= Electrum +Electrum +======== Update height to -1 for txns with any unconfirmed input (https://electrumx.readthedocs.io/en/latest/protocol-basics.html#status) Snapshot DB after successful indexing - and run queries on this snapshot Figure out graceful shutting down RPC server -= Bitcoind +Bitcoind +======== Handle bitcoind connection failures - instead of crashing Use p2p protocol for querying blocks - similar to `bitcoincore-indexd` Add getrawtransactions() API (for RPC batching) -= Performance +Performance +=========== Add timing/profiler helpers (for indexing/DB/RPC operations) Measure first-time query latency Flush only on the last write. -= Rust +Rust +==== Use Bytes instead of Vec[u8] when possible Return errors instead of panics Use generators instead of vectors diff --git a/src/lib.rs b/src/lib.rs index 1a5eee9..6bd0b5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,7 @@ extern crate rocksdb; extern crate serde; extern crate simplelog; extern crate time; + #[macro_use] extern crate chan; #[macro_use]