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(relayer): add core metric for the highest seen index in tree #5151

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix check
aroralanuk committed Jan 11, 2025

Verified

This commit was signed with the committer’s verified signature.
aroralanuk Kunal Arora
commit dde2523422c17e5ef95fcdc0ce5b2f1504e8cbce
4 changes: 4 additions & 0 deletions rust/main/agents/relayer/src/msg/processor.rs
Original file line number Diff line number Diff line change
@@ -742,6 +742,10 @@ mod test {
/// Retrieve the nonce of the highest processed message we're aware of
fn retrieve_highest_seen_message_nonce_number(&self) -> DbResult<Option<u32>>;

fn store_highest_seen_tree_index(&self, index: &u32) -> DbResult<()>;

fn retrieve_highest_seen_tree_index(&self) -> DbResult<Option<u32>>;

}
}

3 changes: 2 additions & 1 deletion rust/main/agents/validator/src/submit.rs
Original file line number Diff line number Diff line change
@@ -464,7 +464,8 @@ mod test {
) -> DbResult<Option<u64>>;
fn store_highest_seen_message_nonce_number(&self, nonce: &u32) -> DbResult<()>;
fn retrieve_highest_seen_message_nonce_number(&self) -> DbResult<Option<u32>>;

fn store_highest_seen_tree_index(&self, index: &u32) -> DbResult<()>;
fn retrieve_highest_seen_tree_index(&self) -> DbResult<Option<u32>>;
}
}