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

Validate blocks arrived from PV to CV #431

Closed
dmugtasimov opened this issue Sep 25, 2021 · 2 comments
Closed

Validate blocks arrived from PV to CV #431

dmugtasimov opened this issue Sep 25, 2021 · 2 comments

Comments

@dmugtasimov
Copy link
Contributor

dmugtasimov commented Sep 25, 2021

DEPENDS ON:

TODO:

  • Implement as celery task
  • Pick pending block by uuid
  • If block number is less or equal to current block number log a warning, delete it from pending blocks and exit
  • If block number is greater than next block number log a warning, schedule the next run of the task in X seconds (configurable) and exit
  • If block number is equal to next block number then validate it
  • If the block is invalid then log a warning, delete it from pending blocks and exit
  • Validate that block is signed by current PV (to be added to blockchain business logic)
  • If the block is valid add it to confirmed blocks (create a stub function) and send block confirmation request to each known node on the network
@dmugtasimov
Copy link
Contributor Author

@fonar @andbortnik unassign the other one whoever takes this task first

@dmugtasimov dmugtasimov changed the title Process pending block celery task Validate blocks arrived to CV from PV Oct 24, 2021
@dmugtasimov dmugtasimov changed the title Validate blocks arrived to CV from PV Validate blocks arrived from PV to CV Oct 24, 2021
@dmugtasimov
Copy link
Contributor Author

Looks like #461 is a part of this task

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

No branches or pull requests

4 participants