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

Create a Verification Handler VerificationHandler #374

Open
Tracked by #89
AlfredoG87 opened this issue Dec 3, 2024 · 0 comments
Open
Tracked by #89

Create a Verification Handler VerificationHandler #374

AlfredoG87 opened this issue Dec 3, 2024 · 0 comments

Comments

@AlfredoG87
Copy link
Contributor

AlfredoG87 commented Dec 3, 2024

As a Block Node
I want the verification handler to be another consumer from the unverified, unparsed ring buffer
so it consumes the blockstream at the same time as other subscribers that also need an unverified stream.

Notes:

  1. Verification Handler needs to communicate with the BlockStatusManager the state of the Block.
  2. Verifier Handler most consume all of the pending items on the RingBuffer and keep it's own ordered queue for asynchronous processing.
  3. Calculate Hash using BlockHashingService Interface
  4. Compare BlockHash received vs calculated
  5. Verify Signature of BlockHash (Verify BlockProof)
  6. Set a Verified Status using the BlockStatusManager
  7. And should re-propagate the verified possibly also parsed block on the verified ringBuffer

*Verified RingBuffer, Pipeline and BlockStatusManager might be worked on a separate Epic. Block Pipelining Epic, for the intents of this Ticket, those interfaces will have a NOOP implementation that all it does is register metrics (maybe) and set logs (definitively)

@AlfredoG87 AlfredoG87 changed the title Create a Verification Handler BlockVerifier Create a Verification Handler VerificationHandler Dec 3, 2024
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