View Source Kadena.Chainweb.P2P.Peer (Kadena v0.19.1)
Peer endpoints implementation for P2P API.
Link to this section Summary
Link to this section Types
@type error() :: {:error, Kadena.Chainweb.Error.t()}
@type json() :: String.t()
@type location() :: String.t()
@type network_id() :: :testnet04 | :mainnet01
@type network_opts() :: Keyword.t()
@type peer() :: Kadena.Chainweb.Peer.t()
@type peer_response() :: Kadena.Chainweb.P2P.PeerResponse.t() | Kadena.Chainweb.P2P.PeerPutResponse.t()
@type response() :: {:ok, peer_response()} | error()
Link to this section Functions
@spec put_cut_info(peer :: peer(), network_opts :: network_opts()) :: response()
@spec put_mempool_info(peer :: peer(), network_opts :: network_opts()) :: response()
@spec retrieve_cut_info(network_opts :: network_opts()) :: response()
@spec retrieve_mempool_info(network_opts :: network_opts()) :: response()