32 std::shared_ptr<BackendInterface> backend_;
33 std::shared_ptr<RegistryInterface> registry_;
34 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler_;
35 std::shared_ptr<SystemState> state_;
37 std::size_t initialLoadWrittenObjects_{0u};
38 std::size_t initialLoadWrites_{0u};
42 using RawLedgerObjectType = org::xrpl::rpc::v1::RawLedgerObject;
43 using GetLedgerResponseType = org::xrpl::rpc::v1::GetLedgerResponse;
44 using OptionalGetLedgerResponseType = std::optional<GetLedgerResponseType>;
47 std::shared_ptr<BackendInterface> backend,
48 std::shared_ptr<RegistryInterface> registry,
49 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler,
50 std::shared_ptr<SystemState> state
53 Loader(Loader
const&) =
delete;
54 Loader(Loader&&) =
delete;
56 operator=(Loader
const&) =
delete;
58 operator=(Loader&&) =
delete;
60 std::expected<void, LoaderError>
66 std::vector<model::Object>
const&
data,
67 std::optional<std::string> lastKey
70 std::optional<ripple::LedgerHeader>
void onInitialLoadGotMoreObjects(uint32_t seq, std::vector< model::Object > const &data, std::optional< std::string > lastKey) override
Callback for each incoming batch of objects during initial ledger load.
Definition Loading.cpp:80