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

@@ -621,7 +621,7 @@ struct NetworkHistory
keyPair.second,
v,
[&](STValidation& v) {
v.setFieldH256(sfLedgerHash, ledger->info().hash);
v.setFieldH256(sfLedgerHash, ledger->header().hash);
v.setFieldU32(sfLedgerSequence, ledger->seq());
v.setFlag(vfFullValidation);
});
@@ -1773,7 +1773,7 @@ class NegativeUNLVoteFilterValidations_test : public beast::unit_test::suite
keys.second,
calcNodeID(keys.first),
[&](STValidation& v) {
v.setFieldH256(sfLedgerHash, l->info().hash);
v.setFieldH256(sfLedgerHash, l->header().hash);
v.setFieldU32(sfLedgerSequence, l->seq());
v.setFlag(vfFullValidation);
});