[][src]Struct in3_sys::in3_chain

#[repr(C)]pub struct in3_chain {
    pub chain_id: chain_id_t,
    pub type_: in3_chain_type_t,
    pub last_block: u64,
    pub nodelist_length: c_int,
    pub nodelist: *mut in3_node_t,
    pub weights: *mut in3_node_weight_t,
    pub init_addresses: *mut *mut bytes_t,
    pub contract: *mut bytes_t,
    pub registry_id: bytes32_t,
    pub version: u8,
    pub verified_hashes: *mut in3_verified_hash_t,
    pub whitelist: *mut in3_whitelist_t,
    pub avg_block_time: u16,
    pub conf: *mut c_void,
    pub nodelist_upd8_params: *mut in3_chain__bindgen_ty_1,
}

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]

impl Copy for in3_chain[src]

impl Debug for in3_chain[src]

Auto Trait Implementations

impl !Send for in3_chain

impl !Sync for in3_chain

impl Unpin for in3_chain

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.