-
Notifications
You must be signed in to change notification settings - Fork 390
Implement PrunedBlockchain
backend: RPC on pruned node
#530
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
Comments
We have discussed making the summer of bitcoin tasks a bit easier because most students don't have a lot of experience with Bitcoin or even git sometimes. Though, compared to the other tasks we have this seems relatively easy, so I'm adding the tag anyway.. |
Imo we should take into consideration that "pruning" does not prune away transactions already found in the Core wallet, and that it is very simple to change a core node from non-pruned to pruned, and that it is also possible that a user will create a Core wallet very early on in bootstrap (even though pruning is enabled). It would make sense in some cases to "reuse" the original |
Closing this in favor of a new issue based on changing new |
Uh oh!
There was an error while loading. Please reload this page.
Current
RpcBlockchain
grants full access to transaction history, however, it requires a non-pruned node (a node storing the full blockchain, which at the time of writing is over 400GB).However, by renouncing to a wallet full transaction history, it is still possible to compute the wallet balance and be able to spend without needing a non-pruned node.
The key to achieve that is using RPC method
scantxoutset
Note: if someone want to turn this into a "summer-of-bitcoin" project is welcome
Summer of Bitcoin Project Proposal
Description
Current
RpcBlockchain
grants full access to transaction history, however, it requires a non-pruned node (a node storing the full blockchain, which at the time of writing is over 400GB).However, even without a wallet's full transaction history it is still possible to compute the wallet balance and be able to spend with only a pruned core full node.
The key to achieve that is using RPC method
scantxoutset
Expected Outcomes
blockchain::rpc::PrunedRpcBlockchain
andblockchain::rpc::PrunedRpcConfig
.PrunedRpcBlockchain
will use corescantxoutset
RPC to compute wallet balances.PrunedRpcBlockchain
will create spending transactions with a pruned core full node.Resources
Skills Required
Mentor(s)
@afilini @RCasatta
Difficulty
Hard
Competency Test
example_bitcoind_rpc_polling
client.The text was updated successfully, but these errors were encountered: