pub struct ValidatorConfig {Show 14 fields
pub node_id: String,
pub listen_addr: String,
pub port: u16,
pub solana_rpc_url: String,
pub pot_program_id: String,
pub difficulty: u64,
pub max_tensor_dim: usize,
pub max_mine_iterations: u64,
pub peer_network_mode: String,
pub pool_strategy: String,
pub chain_bridge: String,
pub device_protocol: String,
pub relayer_keypair_path: String,
pub auto_register_miners: bool,
}Expand description
Runtime configuration for the PoT-O validator (HTTP server, consensus, extensions).
Fields§
§node_id: StringUnique node identifier (default: random UUID).
listen_addr: StringBind address for the HTTP server (default: 0.0.0.0).
port: u16HTTP port (default: 8900).
solana_rpc_url: StringSolana RPC URL for chain and program calls.
pot_program_id: StringPoT-O program ID (optional; empty uses default).
difficulty: u64Mining difficulty (target path count).
max_tensor_dim: usizeMaximum tensor dimension for challenges.
max_mine_iterations: u64Max iterations per mining attempt.
peer_network_mode: StringPeer network mode (e.g. local_only).
pool_strategy: StringPool strategy (e.g. solo).
chain_bridge: StringChain bridge identifier (e.g. solana).
device_protocol: StringDevice protocol (e.g. native).
relayer_keypair_path: StringPath to relayer keypair for on-chain miner registration.
auto_register_miners: boolWhether to auto-register miners on device registration when not yet on-chain.
Implementations§
Trait Implementations§
Source§impl Clone for ValidatorConfig
impl Clone for ValidatorConfig
Source§fn clone(&self) -> ValidatorConfig
fn clone(&self) -> ValidatorConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidatorConfig
impl Debug for ValidatorConfig
Source§impl<'de> Deserialize<'de> for ValidatorConfig
impl<'de> Deserialize<'de> for ValidatorConfig
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
Auto Trait Implementations§
impl Freeze for ValidatorConfig
impl RefUnwindSafe for ValidatorConfig
impl Send for ValidatorConfig
impl Sync for ValidatorConfig
impl Unpin for ValidatorConfig
impl UnsafeUnpin for ValidatorConfig
impl UnwindSafe for ValidatorConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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