xrpld
Loading...
Searching...
No Matches
xrpl::test::csf::Peer::Position Class Reference

Basic wrapper of a proposed position taken by a peer. More...

#include <Peer.h>

Collaboration diagram for xrpl::test::csf::Peer::Position:

Public Member Functions

 Position (Proposal const &p)
Proposal const & proposal () const
json::Value getJson () const

Static Public Member Functions

static std::string render ()

Private Attributes

Proposal proposal_

Detailed Description

Basic wrapper of a proposed position taken by a peer.

For real consensus, this would add additional data for serialization and signing. For simulation, nothing extra is needed.

Definition at line 45 of file test/csf/Peer.h.

Constructor & Destructor Documentation

◆ Position()

xrpl::test::csf::Peer::Position::Position ( Proposal const & p)

Definition at line 48 of file test/csf/Peer.h.

Member Function Documentation

◆ proposal()

Proposal const & xrpl::test::csf::Peer::Position::proposal ( ) const

Definition at line 53 of file test/csf/Peer.h.

◆ getJson()

json::Value xrpl::test::csf::Peer::Position::getJson ( ) const

Definition at line 59 of file test/csf/Peer.h.

◆ render()

std::string xrpl::test::csf::Peer::Position::render ( )
static

Definition at line 65 of file test/csf/Peer.h.

Member Data Documentation

◆ proposal_

Proposal xrpl::test::csf::Peer::Position::proposal_
private

Definition at line 71 of file test/csf/Peer.h.