Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

example deducing block author #500

Closed
harrysolovay opened this issue Jan 8, 2023 · 3 comments · Fixed by #507
Closed

example deducing block author #500

harrysolovay opened this issue Jan 8, 2023 · 3 comments · Fixed by #507
Assignees

Comments

@harrysolovay
Copy link
Contributor

Not exactly sure how this works. Something along the lines of...

  • Read the latest block's header
  • Extract digest logs
  • Read latest Babe pallet authorities (could be different consensus though...)
  • Iterate over authorities, decoding...
  • ...

See PJS equivalent

@harrysolovay harrysolovay added this to Capi Jan 8, 2023
@ryanleecode
Copy link
Contributor

dibs

@ryanleecode ryanleecode self-assigned this Jan 10, 2023
@ryanleecode
Copy link
Contributor

Do we have anything bullt in already that can decode logs?

@harrysolovay
Copy link
Contributor Author

Might require a hand-written codec that decodes the leading text (a union of non-scale-encoded consensus names) followed by validator public keys (I believe).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants