mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 09:46:53 +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:
@@ -252,7 +252,9 @@ private:
|
||||
static_cast<int>(env.current()->fees().base.drops());
|
||||
auto closeTime = [&]() {
|
||||
return duration_cast<seconds>(
|
||||
env.current()->info().closeTime.time_since_epoch() -
|
||||
env.current()
|
||||
->header()
|
||||
.closeTime.time_since_epoch() -
|
||||
10'000s)
|
||||
.count();
|
||||
};
|
||||
@@ -559,7 +561,7 @@ private:
|
||||
BEAST_EXPECT(oracle.exists());
|
||||
BEAST_EXPECT(oracle1.exists());
|
||||
auto const index = env.closed()->seq();
|
||||
auto const hash = env.closed()->info().hash;
|
||||
auto const hash = env.closed()->header().hash;
|
||||
for (int i = 0; i < 256; ++i)
|
||||
env.close();
|
||||
env(acctdelete(owner, alice), fee(acctDelFee));
|
||||
|
||||
Reference in New Issue
Block a user