1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Do not require txindex over the full node

Lookup confirmed transactions only at their blocks (using
the `blockhash` parameter of `getrawtransaction` RPC).

Note that seeking inside a block (on a HDD) doesn't take
too much time when compare to reading the whole block and
finding the transaction (even without a client-side cache).

Note: txindex takes ~16GB today (over Bitcoin mainnet).
This commit is contained in:
Roman Zeyde 2018-06-02 10:14:38 +03:00
parent 4189931020
commit 4b70f3664e
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -6,7 +6,6 @@ Figure out graceful shutting down RPC server
= Bitcoind = Bitcoind
Handle bitcoind connection failures - instead of crashing Handle bitcoind connection failures - instead of crashing
Use p2p protocol for querying blocks - similar to `bitcoincore-indexd` Use p2p protocol for querying blocks - similar to `bitcoincore-indexd`
Lookup confirmed transactions only at their blocks (using `blockhash` parameter of `getrawtransaction` RPC), so -txindex won't be needed
Add getrawtransactions() API (for RPC batching) Add getrawtransactions() API (for RPC batching)
= Performance = Performance