52 std::shared_ptr<BackendInterface> backend_;
53 std::shared_ptr<RegistryInterface> registry_;
54 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler_;
55 std::shared_ptr<etl::SystemState> state_;
57 std::size_t initialLoadWrittenObjects_{0u};
58 std::size_t initialLoadWrites_{0u};
62 using RawLedgerObjectType = org::xrpl::rpc::v1::RawLedgerObject;
63 using GetLedgerResponseType = org::xrpl::rpc::v1::GetLedgerResponse;
64 using OptionalGetLedgerResponseType = std::optional<GetLedgerResponseType>;
67 std::shared_ptr<BackendInterface> backend,
68 std::shared_ptr<RegistryInterface> registry,
69 std::shared_ptr<AmendmentBlockHandlerInterface> amendmentBlockHandler,
70 std::shared_ptr<etl::SystemState> state
73 Loader(Loader
const&) =
delete;
74 Loader(Loader&&) =
delete;
76 operator=(Loader
const&) =
delete;
78 operator=(Loader&&) =
delete;
80 std::expected<void, LoaderError>
86 std::vector<model::Object>
const&
data,
87 std::optional<std::string> lastKey
90 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:94