51 std::shared_ptr<BackendInterface> backend_;
52 std::shared_ptr<RegistryInterface> registry_;
53 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler_;
54 std::shared_ptr<SystemState> state_;
56 std::size_t initialLoadWrittenObjects_{0u};
57 std::size_t initialLoadWrites_{0u};
61 using RawLedgerObjectType = org::xrpl::rpc::v1::RawLedgerObject;
62 using GetLedgerResponseType = org::xrpl::rpc::v1::GetLedgerResponse;
63 using OptionalGetLedgerResponseType = std::optional<GetLedgerResponseType>;
66 std::shared_ptr<BackendInterface> backend,
67 std::shared_ptr<RegistryInterface> registry,
68 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler,
69 std::shared_ptr<SystemState> state
72 Loader(Loader
const&) =
delete;
73 Loader(Loader&&) =
delete;
75 operator=(Loader
const&) =
delete;
77 operator=(Loader&&) =
delete;
79 std::expected<void, LoaderError>
85 std::vector<model::Object>
const&
data,
86 std::optional<std::string> lastKey
89 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:93