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:
@@ -111,13 +111,13 @@ class RCLValidations_test : public beast::unit_test::suite
|
||||
{
|
||||
std::shared_ptr<Ledger const> ledger = history.back();
|
||||
RCLValidatedLedger a{ledger, env.journal};
|
||||
BEAST_EXPECT(a.seq() == ledger->info().seq);
|
||||
BEAST_EXPECT(a.seq() == ledger->header().seq);
|
||||
BEAST_EXPECT(a.minSeq() == a.seq() - maxAncestors);
|
||||
// Ensure the ancestral 256 ledgers have proper ID
|
||||
for (Seq s = a.seq(); s > 0; s--)
|
||||
{
|
||||
if (s >= a.minSeq())
|
||||
BEAST_EXPECT(a[s] == history[s - 1]->info().hash);
|
||||
BEAST_EXPECT(a[s] == history[s - 1]->header().hash);
|
||||
else
|
||||
BEAST_EXPECT(a[s] == ID{0});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user