add endpoint that returns a block's hash and height #405
No reviewers
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#405
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "hash-block-height"
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?
In the sdk we just use the height so I added this for convenience
The entire header is 112 bytes. I think it would be useful to have a method that publishes that in full. The CBlockIndex has a method to get a CBlockHeader; that header is serializable, if that helps.
@ -447,11 +447,13 @@ void SetupServerArgs()
#if ENABLE_ZMQ
gArgs.AddArg("-zmqpubhashblock=<address>", "Enable publish hash block in <address>", false, OptionsCategory::ZMQ);
gArgs.AddArg("-zmqpubhashblockheader=<address>", "Enable publish hash block in <address>", false, OptionsCategory::ZMQ);
The comment wasn't changed. And the name implies that you are sending the entire block header -- more than just hash and height.
Copying an integer this way is architecture-dependent. Look at the functions in the endian.h file.
Pull request closed