mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 01:37:00 +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:
@@ -1107,7 +1107,7 @@ struct DepositPreauth_test : public beast::unit_test::suite
|
||||
// Current time in ripple epoch.
|
||||
// Every time ledger close, unittest timer increase by 10s
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() +
|
||||
60;
|
||||
@@ -1122,7 +1122,7 @@ struct DepositPreauth_test : public beast::unit_test::suite
|
||||
// Create credential which not expired
|
||||
jv = credentials::create(alice, issuer, credType2);
|
||||
uint32_t const t2 = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() +
|
||||
1000;
|
||||
@@ -1199,7 +1199,7 @@ struct DepositPreauth_test : public beast::unit_test::suite
|
||||
{
|
||||
auto jv = credentials::create(gw, issuer, credType);
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() +
|
||||
40;
|
||||
@@ -1252,7 +1252,7 @@ struct DepositPreauth_test : public beast::unit_test::suite
|
||||
// Create credentials
|
||||
auto jv = credentials::create(zelda, issuer, credType);
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() +
|
||||
50;
|
||||
|
||||
Reference in New Issue
Block a user