Change ledgerInfo and replace with ledgerHeader (#1426)

Fixes [#1396](https://github.com/XRPLF/clio/issues/1396)
This commit is contained in:
Peter Chen
2024-06-03 13:11:31 -04:00
committed by GitHub
parent 55b8134e6d
commit 967b85ca33
68 changed files with 687 additions and 663 deletions

View File

@@ -44,14 +44,14 @@ struct MockBackend : public BackendInterface {
}
MOCK_METHOD(
std::optional<ripple::LedgerInfo>,
std::optional<ripple::LedgerHeader>,
fetchLedgerBySequence,
(std::uint32_t const, boost::asio::yield_context),
(const, override)
);
MOCK_METHOD(
std::optional<ripple::LedgerInfo>,
std::optional<ripple::LedgerHeader>,
fetchLedgerByHash,
(ripple::uint256 const&, boost::asio::yield_context),
(const, override)
@@ -170,7 +170,7 @@ struct MockBackend : public BackendInterface {
MOCK_METHOD(std::optional<LedgerRange>, hardFetchLedgerRange, (boost::asio::yield_context), (const, override));
MOCK_METHOD(void, writeLedger, (ripple::LedgerInfo const&, std::string&&), (override));
MOCK_METHOD(void, writeLedger, (ripple::LedgerHeader const&, std::string&&), (override));
MOCK_METHOD(void, writeLedgerObject, (std::string&&, std::uint32_t const, std::string&&), (override));