electrs/src
Nadav Ivgi 44066d6321 Store block metadata in database
So that we don't have to fetch and parse the entire block to get it.

The metadata includes the block size, the number of transactions,
and the sum of transactions weights.

The `GET /blocks` and `GET /block/:hash` endpoints use the new metadata
and no longer have to fetch blocks from bitcoind.

The only remaining endpoint that talks to bitcoind is GET /block/:hash/txs.

(cherry picked from commit 8ff218d3400a65c2ca3225a8337f9f9d72e0115e)
2018-10-26 22:17:18 +02:00
..
bin init rest server 2018-10-26 22:17:18 +02:00
app.rs Reload block header index only after bulk indexing is over 2018-08-31 20:51:57 +03:00
bulk.rs support liquid 2018-10-26 22:17:18 +02:00
config.rs add liquidv1 2018-10-26 22:17:18 +02:00
daemon.rs add liquidv1 2018-10-26 22:17:18 +02:00
errors.rs Add interrupt error kind 2018-07-29 09:39:36 +03:00
fake.rs Add a small comment to test caching 2018-09-28 11:42:34 +03:00
index.rs Store block metadata in database 2018-10-26 22:17:18 +02:00
lib.rs Add scriptpubkey_address to transaction outputs 2018-10-26 22:17:18 +02:00
mempool.rs support liquid 2018-10-26 22:17:18 +02:00
metrics.rs txs endpoint 2018-10-26 22:17:18 +02:00
notify.rs Refactor P2P notification handling 2018-08-15 17:40:56 +03:00
query.rs Store block metadata in database 2018-10-26 22:17:18 +02:00
rest.rs Store block metadata in database 2018-10-26 22:17:18 +02:00
rpc.rs add get block from height 2018-10-26 22:17:18 +02:00
signal.rs Gracefully exit on SIGTERM 2018-08-31 10:39:01 +03:00
store.rs Add scanning DBStore prefix iterator 2018-10-01 21:15:11 +03:00
util.rs Store block metadata in database 2018-10-26 22:17:18 +02:00