mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user