1#include <test/jtx/Env.h>
3#include <xrpld/app/ledger/Ledger.h>
5#include <xrpl/beast/unit_test.h>
6#include <xrpl/ledger/View.h>
24 env.
app().getNodeFamily());
26 for (
auto i = 0; i < 1023; ++i)
30 next->updateSkipList();
38 BEAST_EXPECT((*
std::begin(history))->info().seq < l->info().
seq);
45 l->info().parentHash);
51 for (
auto i = history.
crbegin(); i != history.
crend(); i += 256)
54 n !=
std::next(i, (*i)->info().seq - 256 > 1 ? 257 : 256);
87BEAST_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.