refactor: rename info() to header() (#6138)

This change renames all the `info()` functions to `header()`, since they return `LedgerHeader` structs. It also renames the underlying variables from `info_` to `header_`.
This commit is contained in:
Mayukha Vadari
2025-12-10 16:04:37 -05:00
committed by GitHub
parent bff5954acf
commit 62efecbfb1
90 changed files with 609 additions and 582 deletions

View File

@@ -37,7 +37,7 @@ class LedgerMaster_test : public beast::unit_test::suite
// build ledgers
std::vector<std::shared_ptr<STTx const>> txns;
std::vector<std::shared_ptr<STObject const>> metas;
auto const startLegSeq = env.current()->info().seq;
auto const startLegSeq = env.current()->header().seq;
for (int i = 0; i < 2; ++i)
{
env(noop(alice));
@@ -48,7 +48,7 @@ class LedgerMaster_test : public beast::unit_test::suite
}
// add last (empty) ledger
env.close();
auto const endLegSeq = env.closed()->info().seq;
auto const endLegSeq = env.closed()->header().seq;
// test invalid range
{