xrpld
Loading...
Searching...
No Matches
xrpl::AmendmentState Struct Reference

Current state of an amendment. More...

Collaboration diagram for xrpl::AmendmentState:

Public Member Functions

 AmendmentState ()=default

Public Attributes

AmendmentVote vote = AmendmentVote::Down
 If an amendment is down-voted, a server will not vote to enable it.
bool enabled = false
 Indicates that the amendment has been enabled.
bool supported = false
 Indicates an amendment that this server has code support for.
std::string name
 The name of this amendment, possibly empty.

Detailed Description

Current state of an amendment.

Tells if a amendment is supported, enabled or vetoed. A vetoed amendment means the node will never announce its support.

Definition at line 286 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentState()

xrpl::AmendmentState::AmendmentState ( )
explicitdefault

Member Data Documentation

◆ vote

AmendmentVote xrpl::AmendmentState::vote = AmendmentVote::Down

If an amendment is down-voted, a server will not vote to enable it.

Definition at line 289 of file AmendmentTable.cpp.

◆ enabled

bool xrpl::AmendmentState::enabled = false

Indicates that the amendment has been enabled.

This is a one-way switch: once an amendment is enabled it can never be disabled, but it can be superseded by a subsequent amendment.

Definition at line 296 of file AmendmentTable.cpp.

◆ supported

bool xrpl::AmendmentState::supported = false

Indicates an amendment that this server has code support for.

Definition at line 299 of file AmendmentTable.cpp.

◆ name

std::string xrpl::AmendmentState::name

The name of this amendment, possibly empty.

Definition at line 302 of file AmendmentTable.cpp.