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

Warrants pt 3 -- authoring and integrating warrants #3875

Merged
merged 78 commits into from
Jun 7, 2024
Merged

Conversation

maackle
Copy link
Member

@maackle maackle commented May 16, 2024

Summary

Part of #3639

There are some significant changes to the way the way the database is used.

  • Warrants are stored in the Action table as blobs, differentiated by the DhtOp.type field.
  • There is a new WarrantHash, distinct from ActionHash.
  • The DhtOp.action_hash field can also contain a WarrantHash.

It's all a bit messy, but was done in the spirit of minimal effort and change.

TODO:

  • CHANGELOGs updated with appropriate info
  • Tests:
    • rejected sys validation causes a warrant to be published and authored

@maackle maackle marked this pull request as ready for review June 4, 2024 17:20
Base automatically changed from warrants-2 to develop June 4, 2024 18:40
Copy link
Contributor

@neonphog neonphog left a comment

Choose a reason for hiding this comment

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

👍

@maackle maackle enabled auto-merge (squash) June 7, 2024 19:56
@maackle maackle merged commit fb45cd3 into develop Jun 7, 2024
15 checks passed
@maackle maackle deleted the warrants-3 branch June 7, 2024 20:58
workspace
.authored_db
.write_async(move |txn| {
warn!("Inserting warrant op");
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to add more info to this warning. I'd actually merge it with the one below and output the op that was rejected and the warrant op.

assert_eq!(warrants.len(), 1);
});

// TODO: ensure that bob blocked alice
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this going to be added?

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.

author Warrants for invalid Ops, and integrate valid Warrants
3 participants