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

feat: Create consensus traits and implement praos vrf #1

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

AndrewWestberg
Copy link
Contributor

No description provided.

.github/workflows/validate.yml Show resolved Hide resolved
ouroboros/src/validator/mod.rs Outdated Show resolved Hide resolved
ouroboros/src/ledger/mod.rs Outdated Show resolved Hide resolved
ouroboros-praos/src/consensus/mod.rs Outdated Show resolved Hide resolved
ouroboros-praos/src/consensus/mod.rs Outdated Show resolved Hide resolved
ouroboros-praos/src/consensus/mod.rs Outdated Show resolved Hide resolved
}

#[test]
fn test_validate_conway_block() {
Copy link

Choose a reason for hiding this comment

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

I feel like this is the kind of test that is a good candidate for snapshot testing: https://insta.rs/. We've been using this extensively within Aiken and it's quite enjoyable for capturing regressions and asserting against specific scenarios.

Not saying this should change now, but I might come and set that up eventually :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've implemented snapshot tests. Please re-check.

ouroboros-praos/src/consensus/mod.rs Outdated Show resolved Hide resolved
@AndrewWestberg AndrewWestberg force-pushed the amw/praos_block_vrf_validation branch 3 times, most recently from ac79452 to f29542d Compare October 3, 2024 17:06
@AndrewWestberg AndrewWestberg force-pushed the amw/praos_block_vrf_validation branch from f29542d to 36b4f01 Compare October 3, 2024 22:20
@AndrewWestberg
Copy link
Contributor Author

It's been 5 days. I'm merging this. If you have comments, please make them and I'll clean it up in the next PR. I need to move forward with KES work.

@AndrewWestberg AndrewWestberg merged commit c9fefdb into main Oct 7, 2024
6 checks passed
@wolf31o2 wolf31o2 deleted the amw/praos_block_vrf_validation branch October 7, 2024 14:09
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