pub enum Notice {
Accepted {
height: u64,
transactions: usize,
hash: Hash256,
pushed: bool,
},
Switched {
common: u64,
old: Tip,
new: Tip,
peer: PeerId,
},
Finalized {
epoch: u32,
point: u32,
height: u64,
peer: Option<PeerId>,
checkpoints: usize,
rows: Option<u64>,
remaining: bool,
},
EarlierProof {
epoch: u32,
height: u64,
peer: PeerId,
partial: bool,
},
TooFarInFuture {
peer: PeerId,
height: u64,
ahead: u64,
},
Behind {
peer: PeerId,
finalized: u64,
tip: u64,
},
Produced {
height: u64,
hash: Hash256,
seconds: u64,
peers: usize,
},
PeerDropped {
peer: PeerId,
message: String,
},
Progress {
message: String,
warning: bool,
},
}Expand description
先端の段階で起きたこと。Display は CLI に出す文
Variants§
Accepted
先端にブロックを足した。pushed なら、接続してきたピアが押し付けたもの
Switched
分かれ目 common から先を、ピアの枝に取り替えた
Finalized
証明を確かめて確定を上げた。rows は刈り込んで消した差分の行(刈り込まないなら None)
Fields
EarlierProof
抜けていたか、途中のポイントのままだった前のエポックの証明をしまった
TooFarInFuture
ピアの枝の時刻が今より ahead ミリ秒先なので、今は使わない
Behind
ピアの言う確定が自分の先端より1エポック以上先にある。追いつく段階に戻る
Produced
ハーベストして、親から seconds 秒の高さ height のブロックを作り、先端に足した
PeerDropped
ピアを外した。message はわけを含む文
Progress
そのほかの経過。warning なら、うまくいかなかったこと
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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