Struct saito_rust::blockchain::Blockchain [−][src]
pub struct Blockchain {
pub staking: Staking,
pub utxoset: UtxoSet,
pub blockring: BlockRing,
pub blocks: AHashMap<SaitoHash, Block>,
pub wallet_lock: Arc<RwLock<Wallet>>,
// some fields omitted
}
Fields
staking: Staking
utxoset: UtxoSet
blockring: BlockRing
blocks: AHashMap<SaitoHash, Block>
wallet_lock: Arc<RwLock<Wallet>>
Implementations
pub fn is_new_chain_the_longest_chain(
&mut self,
new_chain: &Vec<[u8; 32]>,
old_chain: &Vec<[u8; 32]>
) -> bool
pub fn wind_chain<'life0, 'life1, 'life_self, 'async_recursion>(
&'life_self mut self,
new_chain: &'life0 Vec<[u8; 32]>,
old_chain: &'life1 Vec<[u8; 32]>,
current_wind_index: usize,
wind_failure: bool
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_recursion>> where
'life0: 'async_recursion,
'life1: 'async_recursion,
'life_self: 'async_recursion,
pub fn unwind_chain<'life0, 'life1, 'life_self, 'async_recursion>(
&'life_self mut self,
new_chain: &'life0 Vec<[u8; 32]>,
old_chain: &'life1 Vec<[u8; 32]>,
current_unwind_index: usize,
wind_failure: bool
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_recursion>> where
'life0: 'async_recursion,
'life1: 'async_recursion,
'life_self: 'async_recursion,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Blockchain
impl Send for Blockchain
impl Sync for Blockchain
impl Unpin for Blockchain
impl !UnwindSafe for Blockchain
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more