From e0cb911a838497c97ff038037ceba5a1ee53a20a Mon Sep 17 00:00:00 2001 From: Marian Vanderka Date: Fri, 29 Nov 2024 13:42:53 +0100 Subject: [PATCH] adds maintenance check for ferry deposit calls --- pallets/rolldown/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pallets/rolldown/src/lib.rs b/pallets/rolldown/src/lib.rs index 176fa53d2..5e0a4dee3 100644 --- a/pallets/rolldown/src/lib.rs +++ b/pallets/rolldown/src/lib.rs @@ -1812,6 +1812,11 @@ impl Pallet { chain: ::ChainId, deposit: messages::Deposit, ) -> Result<(), Error> { + ensure!( + !T::MaintenanceStatusProvider::is_maintenance(), + Error::::BlockedByMaintenanceMode + ); + let deposit_hash = deposit.abi_encode_hash(); if deposit.requestId.id <= LastProcessedRequestOnL2::::get(chain) {