File tree Expand file tree Collapse file tree 2 files changed +777211
-6
lines changed
madara/crates/client/rpc/src/versions/admin/v0_1_0/methods Expand file tree Collapse file tree 2 files changed +777211
-6
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,19 @@ impl MadaraWriteRpcApiV0_1_0Server for Starknet {
9393 /// Only works in full node mode.
9494 async fn revert_to ( & self , block_hash : Felt ) -> RpcResult < ( ) > {
9595 // Only allow revert when in full node mode
96- if self . ctx . service_status ( MadaraServiceId :: BlockProduction ) . is_off ( ) {
96+ // if self.ctx.service_status(MadaraServiceId::BlockProduction).is_off() {
9797 self . backend . revert_to ( & block_hash) . map_err ( StarknetRpcApiError :: from) ?;
9898 // TODO(heemankv, 04-11-25): We should spend time in ruling out the two sources of truth problem for ChainTip
9999 // For now, we have to manually fetch Chain Tip from DB and update this in backend
100100 let fresh_chain_tip = self . backend . db . get_chain_tip ( ) . unwrap ( ) ;
101101 let backend_chain_tip = mc_db:: ChainTip :: from_storage ( fresh_chain_tip) ;
102102 self . backend . chain_tip . send_replace ( backend_chain_tip) ;
103103 Ok ( ( ) )
104- } else {
105- Err ( StarknetRpcApiError :: ErrUnexpectedError {
106- error : "This method is only available in full node mode" . to_string ( ) . into ( )
107- } ) ?
108- }
104+ // } else {
105+ // Err(StarknetRpcApiError::ErrUnexpectedError {
106+ // error: "This method is only available in full node mode".to_string().into()
107+ // })?
108+ // }
109109 }
110110
111111 async fn add_l1_handler_message (
You can’t perform that action at this time.
0 commit comments