pub struct NodeConfig {Show 15 fields
pub network: Network,
pub data_directory: PathBuf,
pub certificates: Certificates,
pub peers: usize,
pub seed: Option<String>,
pub seeds: Vec<String>,
pub storage: Storage,
pub min_free: ByteSize,
pub min_fee_multiplier: u32,
pub listen: Option<Listen>,
pub harvesters: Vec<Harvester>,
pub beneficiary: Option<String>,
pub delegations: Option<Delegations>,
pub rest: Vec<Rest>,
pub finalization: Option<Finalization>,
}Expand description
ノードの設定(spec)
Fields§
§network: Network§data_directory: PathBufブロックと状態をしまうフォルダー
certificates: CertificatesTLS の証明書の鎖と鍵のあるフォルダー
peers: usize先端の段階でつないでおくピアの数
seed: Option<String>住所録が空か全滅したときに、最初につなぐノード(ホスト:ポート)。1 つだけ書くときの形で、seeds と
あわせても使える
seeds: Vec<String>seed の並び。どれかが消えても、ほかのノードからつなぎ直せる
storage: Storage何を残すか、どれだけメモリに持つか
min_free: ByteSizeディスクの空きがこれより少なければ、書く前に止める
min_fee_multiplier: u32これより低い手数料の倍率(最大手数料を大きさで割ったもの)のトランザクションは受け付けない。REST の
/network/fees/transaction でも下限として答える。catapult の minFeeMultiplier にあたる。既定は 0
listen: Option<Listen>接続を受ける。なければ、自分からつなぐだけ
harvesters: Vec<Harvester>ハーベストする鍵の組。空ならしない
beneficiary: Option<String>作るブロックの受取先のアドレス。なければ、ハーベストした鍵のアドレス
delegations: Option<Delegations>ほかの人の委任ハーベストを引き受ける。なければ引き受けない
rest: Vec<Rest>REST の口で待ち受ける。空なら立てない。手元用と公開用のように、いくつでも書ける
finalization: Option<Finalization>ファイナライズの投票。なければ何もしない
Implementations§
Source§impl NodeConfig
impl NodeConfig
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeConfig
impl Debug for NodeConfig
Source§impl<'de> Deserialize<'de> for NodeConfig
impl<'de> Deserialize<'de> for NodeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeConfig
Source§impl PartialEq for NodeConfig
impl PartialEq for NodeConfig
impl StructuralPartialEq for NodeConfig
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnsafeUnpin for NodeConfig
impl UnwindSafe for NodeConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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