Function saito_rust::peer::handle_inbound_peer_connection[][src]

pub async fn handle_inbound_peer_connection(
    ws: WebSocket,
    peer_db_lock: Arc<RwLock<PeersDB>>,
    wallet_lock: Arc<RwLock<Wallet>>,
    mempool_lock: Arc<RwLock<Mempool>>,
    blockchain_lock: Arc<RwLock<Blockchain>>,
    broadcast_channel_sender: Sender<SaitoMessage>
)
Expand description

spawns a task to read messages from the socket of inbound peers.