View Source Kadena.Chainweb.P2P.Peer (Kadena v0.19.0)

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 response() :: {:ok, peer_response()} | error()

Link to this section Functions

Link to this function

put_cut_info(peer, network_opts \\ [])

View Source
@spec put_cut_info(peer :: peer(), network_opts :: network_opts()) :: response()
Link to this function

put_mempool_info(peer, network_opts \\ [])

View Source
@spec put_mempool_info(peer :: peer(), network_opts :: network_opts()) :: response()
Link to this function

retrieve_cut_info(network_opts \\ [])

View Source
@spec retrieve_cut_info(network_opts :: network_opts()) :: response()
Link to this function

retrieve_mempool_info(network_opts \\ [])

View Source
@spec retrieve_mempool_info(network_opts :: network_opts()) :: response()