20#include <test/jtx/Env.h>
22#include <xrpld/app/ledger/Ledger.h>
24#include <xrpl/beast/unit_test.h>
25#include <xrpl/ledger/View.h>
43 env.
app().getNodeFamily());
45 for (
auto i = 0; i < 1023; ++i)
49 next->updateSkipList();
57 BEAST_EXPECT((*
std::begin(history))->info().seq < l->info().
seq);
64 l->info().parentHash);
70 for (
auto i = history.
crbegin(); i != history.
crend(); i += 256)
73 n !=
std::next(i, (*i)->info().seq - 256 > 1 ? 257 : 256);
106BEAST_DEFINE_TESTSUITE(SkipList, ledger,
ripple);
virtual TimeKeeper & timeKeeper()=0
time_point closeTime() const
Returns the predicted close time, in network time.
void run() override
Runs the suite.
A transaction testing environment.
beast::Journal const journal
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::optional< uint256 > hashOfSeq(ReadView const &ledger, LedgerIndex seq, beast::Journal journal)
Return the hash of a ledger by sequence.
create_genesis_t const create_genesis
Set the sequence number on a JTx.