Aleo的消息类型

Aleo的消息类型

  • BlockRequest(u32, u32),
  • BlockResponse(Data): (block)
  • ChallengeRequest(u32, u32, NodeType, State, u16, u64, u128): (version, fork_depth, node_type, status, listener_port, nonce, cumulative_weight)
  • ChallengeResponse(Data): (block_header)
  • Disconnect(DisconnectReason): ()
  • PeerRequest: ()
  • PeerResponse(Vec): ([peer_ip])
  • Ping(u32, u32, NodeType, State, N::BlockHash, Data): (version, fork_depth, node_type, status, block_hash, block_header)
  • Pong(Option, Data): (is_fork, block_locators)
  • UnconfirmedBlock(u32, N::BlockHash, Data): (block_height, block_hash, block)
  • UnconfirmedTransaction(Data): (transaction)
  • PoolRegister(Address): (address)
  • PoolRequest(u64, Data): (share_difficulty, block_template)
  • PoolResponse(Address, N::PoSWNonce, Data): (address, nonce, proof)
  • NewBlockTemplate(Data),
  • PoolBlock(N::PoSWNonce, Data),

你可能感兴趣的:(Aleo,Rust,aleo,rust)