electrs icon indicating copy to clipboard operation
electrs copied to clipboard

Feature: work with pruned node

Open prusnak opened this issue 2 years ago • 6 comments

Since https://github.com/bitcoin/bitcoin/pull/20295 has been merged, it should be possible to run electrs against pruned node. If we encounter a block that is not cached, we can fetch it via the getblockfrompeer RPC call.

prusnak avatar Jan 25 '22 00:01 prusnak

Note that btc-rpc-proxy should be usable today :) (but didn't try with electrs yet).

Concept ACK as long as it doesn't unconditionally increase minimal required Core version.

Kixunil avatar Jan 25 '22 09:01 Kixunil

Just note that getblockfrompeer doesn't wait for the block and doesn't fail if a given peer doesn't have it. So you'll have to work around that, or improve the RPC.

Sjors avatar Feb 01 '22 14:02 Sjors

ACK

leffw avatar Aug 08 '22 05:08 leffw

Any update on this?

timaschew avatar Sep 25 '23 12:09 timaschew

will this getblockfrompeer the entire pruned part of the locally stored chain for the initial index?

for queries this wont improve privacy, if you request a bunch of blocks, simply making an address list and intersecting them can show the query address

antonilol avatar Oct 17 '23 13:10 antonilol

@antonilol oh, that's a good point! Leaking privacy makes electrs pretty much pointless unless we query over separate Tor circuits which would be very slow.

Kixunil avatar Oct 27 '23 10:10 Kixunil