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(protocol): add unit tests for cooldown period and oracle overriding #13691

Conversation

adaki2004
Copy link
Contributor

Unit tests for code described here:
#13686

@adaki2004 adaki2004 requested a review from dantaik May 2, 2023 08:29
@dantaik dantaik changed the title feat(protocol): Unit tests for cooldown and oracle prover feat(protocol): add unit tests for cooldown period and oracle overriding May 2, 2023
@dantaik dantaik linked an issue May 2, 2023 that may be closed by this pull request
vm.warp(block.timestamp + 1 seconds);
verifyBlock(Carol, 1);

// Check if shortly after proving (+verify) the ast verify is not the same anymore
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Check if shortly after proving (+verify) the ast verify is not the same anymore
// Check if shortly after proving (+verify) the last verify is not the same anymore

@@ -230,6 +231,69 @@ contract TaikoL1OracleTest is TaikoL1TestBase {
}
}

function testOracleProverCannotOverwriteIfSameProof() external {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure you have run pnpm lint:sol, please do it before you commit.

@adaki2004 adaki2004 merged commit 2054852 into cannot_override_same_proof May 2, 2023
@adaki2004 adaki2004 deleted the Unit_tests_for_cooldown_and_oracle_prover branch May 2, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add unit tests for some untested scenairos
2 participants