Skip to content
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

digest verify chain information does not provide enough relevant block details #97

Open
jrick opened this issue Feb 15, 2025 · 0 comments

Comments

@jrick
Copy link
Member

jrick commented Feb 15, 2025

It only provides the timestamp encoded in the block header and the total number of confirmations.

The confirmation count is completely useless because it can change at any point and different nodes can different views of the current best chain.

The timestamp encoded in the block header is moderately useful, but securely verifying the accuracy requires cross checking this against a trusted/local dcrd instance, and doing so would require the block header or hash to query the block. (This cross checking is also required to verify that the block really does contain the anchor transaction.)

The API should instead include the block hash which mines the anchor at a minimum, and probably the block height as well.

While the block could be looked up by the anchor tx hash, this requires tx indexing and is not enabled by default by dcrd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant