-
Notifications
You must be signed in to change notification settings - Fork 27
Blocks #79
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
Blocks #79
Conversation
|
At first look (on my cell phone) looks good but want to think about it more just because it is a long-term commitment to support queries for blocks going forward. But most 3rd party apis do provide that so... should be fine I guess. |
| self.prev = prev | ||
| self.next = next | ||
| self.txs = txs | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where's the merkle root? It's available in the json response from all apis... and if there was any reason to be pulling block headers like this it would be for SPV verification - which needs merkle root
|
I'm not sure about this. I just tried to use I wonder if this may be beyond the scope of bitsv until/unless there are APIs that support just fetching the 80 byte block headers. I think the business of collating all of the txids in a block is more something that should be done on a server whereas bitsv is meant to be lightweight client software. If you wanted just the 80 byte headers, that would be different and maybe ElectrumX could be a better fit (only fetches the headers and is a more efficient protocol)? (aiorpcx is the client for it - but it's async so would have to wrap it to make it blend in to the rest of bitsv) What do you think @teran-mckinney ? |
|
Thanks for your replies; I haven't found them all yet. It sounds like it would be good for transaction fetching to be in a separate generator, so the block metadata can be retrieved without all the transactions. It might be a while for me to get back to this. |
|
Sorry I don't think it is appropriate for bitsv to be pulling entire blocks from an http REST API. There's no point including it because it won't ever scale and is out of scope for bitsv |
This adds api functions for retrieving blocks. Merges on top of #78.