rippled
Public Member Functions | Public Attributes | List of all members
ripple::AmendmentState Struct Reference

Current state of an amendment. More...

Collaboration diagram for ripple::AmendmentState:
Collaboration graph
[legend]

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. More...
 
bool enabled = false
 Indicates that the amendment has been enabled. More...
 
bool supported = false
 Indicates an amendment that this server has code support for. More...
 
std::string name
 The name of this amendment, possibly empty. More...
 

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 74 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentState()

ripple::AmendmentState::AmendmentState ( )
explicitdefault

Member Data Documentation

◆ vote

AmendmentVote ripple::AmendmentState::vote = AmendmentVote::down

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

Definition at line 77 of file AmendmentTable.cpp.

◆ enabled

bool ripple::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 84 of file AmendmentTable.cpp.

◆ supported

bool ripple::AmendmentState::supported = false

Indicates an amendment that this server has code support for.

Definition at line 87 of file AmendmentTable.cpp.

◆ name

std::string ripple::AmendmentState::name

The name of this amendment, possibly empty.

Definition at line 90 of file AmendmentTable.cpp.