sui_graphql_rpc/types/
safe_mode.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use super::gas::GasCostSummary;
use async_graphql::*;

/// Information about whether epoch changes are using safe mode.
#[derive(Clone, Debug, PartialEq, Eq, SimpleObject)]
pub(crate) struct SafeMode {
    /// Whether safe mode was used for the last epoch change.  The system will retry a full epoch
    /// change on every epoch boundary and automatically reset this flag if so.
    pub enabled: Option<bool>,

    /// Accumulated fees for computation and cost that have not been added to the various reward
    /// pools, because the full epoch change did not happen.
    pub gas_summary: Option<GasCostSummary>,
}