pub struct Keep {
pub state: u64,
pub trie: u64,
pub history: bool,
}Expand description
刈り込みで、ファイナライズより何エポック下まで差分を残すか。状態と木のノードとで別々。
巻き戻しに使う差分が要るので、どちらも CHECKPOINT_EPOCHS 以上にする
Fields§
§state: u64§trie: u64§history: boolブロック、ステートメント、ファイナライズの証明も、状態の差分の境から再開に要る分(
[ChainConfig::blocks_for_restart])を引いたところより前を消す
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keep
impl RefUnwindSafe for Keep
impl Send for Keep
impl Sync for Keep
impl Unpin for Keep
impl UnsafeUnpin for Keep
impl UnwindSafe for Keep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more