Search
Peer struct definition.
Peer
@type address() :: map() | nil
@type error() :: {:error, Keyword.t()}
@type id() :: String.t() | nil
@type result() :: t() | error()
@type t() :: %Kadena.Chainweb.Peer{address: address(), id: id()}
@type validation() :: {:ok, map()} | error()
@spec set_address(peer :: t(), address :: address()) :: result()
@spec set_id(peer :: t(), id :: id()) :: result()