mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Amendment RPC enhancements:
* RPC command to veto/unveto * Store votes * Add vote information to JSON * Add ledger majority information to JSON * Config section for vetos
This commit is contained in:
@@ -210,6 +210,15 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/** Amendments that this server supports and enables by default */
|
||||
std::vector<std::string>
|
||||
preEnabledAmendments ();
|
||||
|
||||
/** Amendments that this server supports, but doesn't enable by default */
|
||||
std::vector<std::string>
|
||||
supportedAmendments ();
|
||||
|
||||
} // detail
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -453,10 +462,6 @@ public:
|
||||
, serverHandler_ (make_ServerHandler (*this, *m_networkOPs, get_io_service (),
|
||||
*m_jobQueue, *m_networkOPs, *m_resourceManager, *m_collectorManager))
|
||||
|
||||
, m_amendmentTable (make_AmendmentTable
|
||||
(weeks(2), MAJORITY_FRACTION,
|
||||
logs_->journal("AmendmentTable")))
|
||||
|
||||
, mFeeTrack (std::make_unique<LoadFeeTrack>(logs_->journal("LoadManager")))
|
||||
|
||||
, mHashRouter (std::make_unique<HashRouter>(
|
||||
@@ -962,8 +967,23 @@ void ApplicationImp::setup()
|
||||
if (!config_->RUN_STANDALONE)
|
||||
updateTables ();
|
||||
|
||||
m_amendmentTable->addInitial (
|
||||
config_->section (SECTION_AMENDMENTS));
|
||||
// Configure the amendments the server supports
|
||||
{
|
||||
Section supportedAmendments ("Supported Amendments");
|
||||
supportedAmendments.append (detail::supportedAmendments ());
|
||||
|
||||
Section enabledAmendments = config_->section (SECTION_AMENDMENTS);
|
||||
enabledAmendments.append (detail::preEnabledAmendments ());
|
||||
|
||||
m_amendmentTable = make_AmendmentTable (
|
||||
weeks(2),
|
||||
MAJORITY_FRACTION,
|
||||
supportedAmendments,
|
||||
enabledAmendments,
|
||||
config_->section (SECTION_VETO_AMENDMENTS),
|
||||
logs_->journal("Amendments"));
|
||||
}
|
||||
|
||||
Pathfinder::initPathTable();
|
||||
|
||||
m_ledgerMaster->setMinValidations (
|
||||
|
||||
Reference in New Issue
Block a user