Skip to content

Commit

Permalink
Merge branch 'dev' into dilithium
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 authored Dec 11, 2024
2 parents f6b2ac3 + 532a471 commit 2514e24
Show file tree
Hide file tree
Showing 28 changed files with 2,258 additions and 198 deletions.
1 change: 1 addition & 0 deletions Builds/CMake/RippledCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ target_sources (rippled PRIVATE
src/ripple/app/misc/NegativeUNLVote.cpp
src/ripple/app/misc/NetworkOPs.cpp
src/ripple/app/misc/SHAMapStoreImp.cpp
src/ripple/app/misc/StateAccounting.cpp
src/ripple/app/misc/detail/impl/WorkSSL.cpp
src/ripple/app/misc/impl/AccountTxPaging.cpp
src/ripple/app/misc/impl/AmendmentTable.cpp
Expand Down
3 changes: 3 additions & 0 deletions src/ripple/app/ledger/LedgerMaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ class LedgerMaster : public AbstractFetchPackContainer
std::string
getCompleteLedgers();

RangeSet<std::uint32_t>
getCompleteLedgersRangeSet();

/** Apply held transactions to the open ledger
This is normally called as we close the ledger.
The open ledger remains open to handle new transactions
Expand Down
7 changes: 7 additions & 0 deletions src/ripple/app/ledger/impl/LedgerMaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,13 @@ LedgerMaster::getCompleteLedgers()
return to_string(mCompleteLedgers);
}

RangeSet<std::uint32_t>
LedgerMaster::getCompleteLedgersRangeSet()
{
std::lock_guard sl(mCompleteLock);
return mCompleteLedgers;
}

std::optional<NetClock::time_point>
LedgerMaster::getCloseTimeBySeq(LedgerIndex ledgerIndex)
{
Expand Down
11 changes: 11 additions & 0 deletions src/ripple/app/main/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <ripple/app/main/NodeStoreScheduler.h>
#include <ripple/app/main/Tuning.h>
#include <ripple/app/misc/AmendmentTable.h>
#include <ripple/app/misc/DatagramMonitor.h>
#include <ripple/app/misc/HashRouter.h>
#include <ripple/app/misc/LoadFeeTrack.h>
#include <ripple/app/misc/NetworkOPs.h>
Expand Down Expand Up @@ -167,6 +168,8 @@ class ApplicationImp : public Application, public BasicApp
std::unique_ptr<Logs> logs_;
std::unique_ptr<TimeKeeper> timeKeeper_;

std::unique_ptr<DatagramMonitor> datagram_monitor_;

std::uint64_t const instanceCookie_;

beast::Journal m_journal;
Expand Down Expand Up @@ -1523,6 +1526,14 @@ ApplicationImp::setup(boost::program_options::variables_map const& cmdline)
if (reportingETL_)
reportingETL_->start();

// Datagram monitor if applicable
if (!config_->standalone() && config_->DATAGRAM_MONITOR != "")
{
datagram_monitor_ = std::make_unique<DatagramMonitor>(*this);
if (datagram_monitor_)
datagram_monitor_->start();
}

return true;
}

Expand Down
Loading

0 comments on commit 2514e24

Please sign in to comment.