xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
libxrpl
protocol
Protocol.cpp
1
#include <xrpl/protocol/Protocol.h>
2
3
namespace
xrpl
{
4
bool
5
isVotingLedger
(
LedgerIndex
seq)
6
{
7
return
seq %
kFlagLedgerInterval
== 0;
8
}
9
10
bool
11
isFlagLedger
(
LedgerIndex
seq)
12
{
13
return
seq %
kFlagLedgerInterval
== 0;
14
}
15
}
// namespace xrpl
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::isFlagLedger
bool isFlagLedger(LedgerIndex seq)
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition
Protocol.cpp:11
xrpl::LedgerIndex
std::uint32_t LedgerIndex
A ledger index.
Definition
Protocol.h:382
xrpl::isVotingLedger
bool isVotingLedger(LedgerIndex seq)
Returns true if the given ledgerIndex is a voting ledgerIndex.
Definition
Protocol.cpp:5
xrpl::kFlagLedgerInterval
constexpr std::uint32_t kFlagLedgerInterval
Definition
Protocol.h:384
Generated by
1.17.0