Struct saito_rust::network::Network [−][src]
pub struct Network { /* fields omitted */ }
Implementations
pub fn new(
configuration: Settings,
blockchain_lock: Arc<RwLock<Blockchain>>,
mempool_lock: Arc<RwLock<Mempool>>,
wallet_lock: Arc<RwLock<Wallet>>,
broadcast_channel_sender: Sender<SaitoMessage>
) -> Network
pub fn new(
configuration: Settings,
blockchain_lock: Arc<RwLock<Blockchain>>,
mempool_lock: Arc<RwLock<Mempool>>,
wallet_lock: Arc<RwLock<Wallet>>,
broadcast_channel_sender: Sender<SaitoMessage>
) -> Network
Create a Network
pub async fn handshake_and_synchronize_chain(
connection_id: &SaitoHash,
wallet_lock: Arc<RwLock<Wallet>>
)
pub async fn handshake_and_synchronize_chain(
connection_id: &SaitoHash,
wallet_lock: Arc<RwLock<Wallet>>
)
After socket has been connected, the connector begins the handshake via SHAKINIT command. Once the handshake is complete, we synchronize the peers via REQCHAIN/SENDCHAIN and REQBLOCK.
Auto Trait Implementations
impl !RefUnwindSafe for Network
impl !UnwindSafe for Network
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