// SwitchBlockOff implements Block.SwitchBlockOff(). func (a *API) SwitchBlockOff(args params.BlockSwitchParams) params.ErrorResult { if err := a.checkCanWrite(); err != nil { return params.ErrorResult{Error: common.ServerError(err)} } err := a.access.SwitchBlockOff(state.ParseBlockType(args.Type)) return params.ErrorResult{Error: common.ServerError(err)} }
// SwitchBlockOff implements Block.SwitchBlockOff(). func (a *API) SwitchBlockOff(args params.BlockSwitchParams) params.ErrorResult { err := a.access.SwitchBlockOff(state.ParseBlockType(args.Type)) return params.ErrorResult{Error: common.ServerError(err)} }