-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pruneblockchain (RPC): Supported ? #368
Comments
As of today, electrs doesn't support pruned nodes. Line 343 in 8fb4d7c
|
@iangregsondev take a look at Bitcoin RPC Proxy, it can fake non-pruned node by fetching the missing blocks from peers. If you put it between bitcoind and electrs, it should work. Disclaimer: I didn't test it yet. |
@Kixunil's link doesn't work. Looks like he want's to point us to Bitcoin RPC Proxy |
@gcomte sorry and thanks for heads up! I didn't prefix it with |
Hello @Kixunil, I'm interested in running Lines 140 to 143 in a552a2b
for which I assume the method no longer works with So I downgraded to Lines 217 to 232 in 1997ddc
If I place
and it's not until I
so I'm not sure if the problem is on |
Yes, it was removed since it was inefficient and caused OOMs in bitcoind: #373 |
I think that a possible solution is to allow electrs to fetch blocks from other peers - in case the local peer is a pruned node. |
Yeah, fetching from other peers should be fairly simple but we have to keep in mind to not trust them and verify hashes. |
Hi,
I was hoping to use a pruneblockchain rpc command ( https://bitcoincore.org/en/doc/0.21.0/rpc/blockchain/pruneblockchain/ )
I was wondering if electrs supports this ?
This is pruning using the RPC command and not adding anything into bitcoin.conf, so I would need a full synchronised blockchain and then after that I could issue the pruneblockchain - passing in a height I wish to prune up to.
As the product I am developing is only valid from a certain block height then I think this would work for me BUT I am unsure if this is going to cause problems with electrs, will electrs detected that its pruned (no setting in bitcoin.conf) - is this something I can get away with :-) ?
I know that electrs doesn't work with pruned node but is this classed the same as having the settings set in the bitcoin.conf.
Any ideas?
Thanks in advance
The text was updated successfully, but these errors were encountered: