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:
@@ -842,7 +842,7 @@ class ServerStatus_test : public beast::unit_test::suite,
|
||||
|
||||
// mark the Network as having an Amendment Warning, but won't fail
|
||||
env.app().getOPs().setAmendmentWarned();
|
||||
env.app().getOPs().beginConsensus(env.closed()->info().hash, {});
|
||||
env.app().getOPs().beginConsensus(env.closed()->header().hash, {});
|
||||
|
||||
// consensus doesn't change
|
||||
BEAST_EXPECT(
|
||||
@@ -973,7 +973,7 @@ class ServerStatus_test : public beast::unit_test::suite,
|
||||
// mark the Network as Amendment Blocked, but still won't fail until
|
||||
// ELB is enabled (next step)
|
||||
env.app().getOPs().setAmendmentBlocked();
|
||||
env.app().getOPs().beginConsensus(env.closed()->info().hash, {});
|
||||
env.app().getOPs().beginConsensus(env.closed()->header().hash, {});
|
||||
|
||||
// consensus now sees validation disabled
|
||||
BEAST_EXPECT(
|
||||
|
||||
Reference in New Issue
Block a user