Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
rename method for mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 23, 2024
1 parent 24b94bb commit f782869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mocks/src/sovereign/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ where
.cloned()
}

pub fn read_mempool(&self) -> Vec<RuntimeCall<S>> {
pub fn consume_mempool(&self) -> Vec<RuntimeCall<S>> {
self.mempool.acquire_mutex().drain(..).collect()
}

Expand Down
2 changes: 1 addition & 1 deletion mocks/src/sovereign/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ where
// Resets the sender address to the address of the relayer
// self.resolve_ctx(rollup_ctx.sender().clone(), visible_slot);

for m in self.read_mempool() {
for m in self.consume_mempool() {
// NOTE: on failures, we silently ignore the message and continue as
// it is in the real-case scenarios
self.runtime()
Expand Down

0 comments on commit f782869

Please sign in to comment.