Skip to content

Commit

Permalink
adds maintenance check for ferry deposit calls (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian authored Dec 3, 2024
1 parent a8b9021 commit 7ffc20d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pallets/rolldown/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1832,6 +1832,11 @@ impl<T: Config> Pallet<T> {
chain: <T as Config>::ChainId,
deposit: messages::Deposit,
) -> Result<(), Error<T>> {
ensure!(
!T::MaintenanceStatusProvider::is_maintenance(),
Error::<T>::BlockedByMaintenanceMode
);

let deposit_hash = deposit.abi_encode_hash();

if deposit.requestId.id <= LastProcessedRequestOnL2::<T>::get(chain) {
Expand Down

0 comments on commit 7ffc20d

Please sign in to comment.