Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Cleanup - reject_callx_r10 #598

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Cleanup - reject_callx_r10 #598

merged 1 commit into from
Sep 26, 2024

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Sep 26, 2024

No description provided.

@Lichtso Lichtso force-pushed the cleanup/reject_callx_r10 branch 2 times, most recently from b6d0820 to 820e8c7 Compare September 26, 2024 18:03
@Lichtso Lichtso force-pushed the cleanup/reject_callx_r10 branch from 820e8c7 to 1a0a9aa Compare September 26, 2024 18:05
@Lichtso Lichtso requested a review from LucasSte September 26, 2024 18:07
@@ -221,7 +220,7 @@ pub struct RequisiteVerifier {}
impl Verifier for RequisiteVerifier {
/// Check the program against the verifier's rules
#[rustfmt::skip]
fn verify<C: ContextObject>(prog: &[u8], config: &Config, sbpf_version: &SBPFVersion, function_registry: &FunctionRegistry<usize>, syscall_registry: &FunctionRegistry<BuiltinFunction<C>>) -> Result<(), VerifierError> {
fn verify<C: ContextObject>(prog: &[u8], _config: &Config, sbpf_version: &SBPFVersion, function_registry: &FunctionRegistry<usize>, syscall_registry: &FunctionRegistry<BuiltinFunction<C>>) -> Result<(), VerifierError> {

Choose a reason for hiding this comment

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

Perhaps we could remove the unused argument from the trait?

Copy link
Author

Choose a reason for hiding this comment

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

It is likely that there will be more feature flags affecting the verifier in the future. And this would have to be removed / added to the interface on the validator side every time.

@Lichtso Lichtso merged commit 1e3f4b1 into main Sep 26, 2024
12 checks passed
@Lichtso Lichtso deleted the cleanup/reject_callx_r10 branch September 26, 2024 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants