Include last block hash on claimtrie RPC results #130
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
Epic
good first issue
hacktoberfest
hard fork
help wanted
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
soft fork
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
work in progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbrycrd#130
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both lbryumx and lbryum/lbrynet could benefit from knowing which block hash the response came from, so it can check if that matches the current database state. It should also make it easier to check if the blockchain tip changed during large queries.
Use cases for other projects getting this information:
Modifications on lbrycrd code:
This is a related issue https://github.com/lbryio/lbrycrd/issues/44, and PR: https://github.com/lbryio/lbrycrd/pull/189
The code required to implement minconf is nearly identical to the code required to implement blockhash as an argument. And blockhash can be used to implement minconf (look up the block hash on the particular height), so I believe #189 should be modified to use blockhash.
Thanks for pointing out the connection. I concur on using blockhash for #44. I will make that change and resubmit #189. I will also add this (return the block hash) into #189 as I think it would be trivial. My current plan is to get a working implementation on #107 first, though, unless somebody wants to argue for this as a higher priority.
We've adjusted #44 to make the RPC methods take an optional blockhash. It will return an error if the blockhash cannot be accommodated. Is that sufficient to achieve this? Or is there value in returning a blockhash field for the case when you want the current tip? (Which would be a rare situation when the API is used by a higher-level entity.)
@shyba confirmed that it #44 will fix this