[−][src]Struct in3_sys::in3_chain
Chain definition inside incubed.
for incubed a chain can be any distributed network or database with incubed support.
Fields
chain_id: chain_id_t
< chain_id, which could be a free or based on the public ethereum networkId
type_: in3_chain_type_t
< chaintype
last_block: u64
< last blocknumber the nodeList was updated, which is used to detect changed in the nodelist
nodelist_length: c_int
< number of nodes in the nodeList
nodelist: *mut in3_node_t
< array of nodes
weights: *mut in3_node_weight_t
< stats and weights recorded for each node
init_addresses: *mut *mut bytes_t
< array of addresses of nodes that should always part of the nodeList
contract: *mut bytes_t
< the address of the registry contract
registry_id: bytes32_t
< the identifier of the registry
version: u8
< version of the chain
verified_hashes: *mut in3_verified_hash_t
< contains the list of already verified blockhashes
whitelist: *mut in3_whitelist_t
< if set the whitelist of the addresses.
avg_block_time: u16
< average block time (seconds) for this chain (calculated internally)
conf: *mut c_void
< this configuration will be set by the verifiers and allow to add special structs here.
nodelist_upd8_params: *mut in3_chain__bindgen_ty_1
Trait Implementations
impl Clone for in3_chain
[src]
fn clone(&self) -> in3_chain
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for in3_chain
[src]
impl Debug for in3_chain
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,