pub struct Nemesis {
pub block: Block,
pub generation_hash: GenerationHash,
pub statement: BlockStatement,
pub sub_cache_roots: [Hash256; 9],
}Expand description
作った Nemesis。ブロックと、catapult が一緒にしまうもの
Fields§
§block: Block§generation_hash: GenerationHash§statement: BlockStatement実行したときのステートメント。ブロックの ReceiptsHash は、これの Merkle の根
sub_cache_roots: [Hash256; 9]9本の状態の木の根。ブロックの StateHash は、これをつないだもののハッシュ
Implementations§
Source§impl Nemesis
impl Nemesis
Sourcepub fn seed_files(
&self,
seed: &GenerationHashSeed,
) -> Vec<(&'static str, Vec<u8>)>
pub fn seed_files( &self, seed: &GenerationHashSeed, ) -> Vec<(&'static str, Vec<u8>)>
catapult のノードの seed フォルダーに置くファイル(パスと中身)。seedDirectory に置けば、catapult の
ノードはここから始める。ブロック、ステートメント、高さ 1 のハッシュ、Nemesis を確定した証明
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nemesis
impl RefUnwindSafe for Nemesis
impl Send for Nemesis
impl Sync for Nemesis
impl Unpin for Nemesis
impl UnsafeUnpin for Nemesis
impl UnwindSafe for Nemesis
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> 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