20 #ifndef RIPPLE_NODESTORE_SHARDINFO_H_INCLUDED
21 #define RIPPLE_NODESTORE_SHARDINFO_H_INCLUDED
23 #include <ripple/basics/RangeSet.h>
24 #include <ripple/nodestore/Types.h>
25 #include <ripple/protocol/messages.h>
105 [[nodiscard]] protocol::TMPeerShardInfoV2
std::map< std::uint32_t, Incomplete > incomplete_
void setMsgTimestamp(NetClock::time_point const ×tamp)
bool from_string(RangeSet< T > &rs, std::string const &s)
Convert the given styled string to a RangeSet.
bool update(std::uint32_t shardIndex, ShardState state, std::uint32_t percentProgress)
Incomplete(ShardState state, std::uint32_t percentProgress)
std::uint32_t percentProgress_
bool setFinalizedFromString(std::string const &str)
RangeSet< std::uint32_t > finalized_
std::map< std::uint32_t, Incomplete > const & incomplete() const
NetClock::time_point const & msgTimestamp() const
protocol::TMPeerShardInfoV2 makeMessage(Application &app)
NetClock::time_point msgTimestamp_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string incompleteToString() const
std::string finalizedToString() const
ShardState state() const noexcept
boost::icl::interval_set< T, std::less, ClosedInterval< T > > RangeSet
A set of closed intervals over the domain T.
std::uint32_t percentProgress() const noexcept
RangeSet< std::uint32_t > const & finalized() const