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

Put the wasms required to validate block signatures in the block header #385

Merged
merged 7 commits into from
Apr 13, 2023

Conversation

swatanabe
Copy link
Collaborator

No description provided.

- The services need to be updated on setCode to maintain correct
  invariants. It's better to keep all the tracking in setCode,
  especially since automatic deduction of services in setProducers
  misses services called indirectly.
- Update psibase, DefaultTestChain, and test_util.cpp to set the new
  flag on verifyec-sys.
- Move CodeRow to nativeConstrained
- Allow writes to nativeConstrained to trigger state updates (used to
  track changes to the set of header auth services)
- Allow fracpack to work with psio::input_stream, be adding an implicit
  conversion to std::span.
…header services at the end of the previous block.
@swatanabe swatanabe marked this pull request as ready for review April 12, 2023 13:50
revision = systemContext->sharedDatabase.emptyRevision();
if (auto status = db.kvGet<StatusRow>(StatusRow::db, StatusRow::key()))
{
Database dst{systemContext->sharedDatabase, revision};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you start a write session before updating the db here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test case doesn't catch it because it only loads an empty database

@James-Mart James-Mart merged commit 65de49c into main Apr 13, 2023
@swatanabe swatanabe deleted the header-sig branch April 13, 2023 19:38
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

Successfully merging this pull request may close these issues.

2 participants