mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +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:
@@ -336,7 +336,7 @@ struct Credentials_test : public beast::unit_test::suite
|
||||
auto const credKey = credentials::keylet(subject, issuer, credType);
|
||||
auto jv = credentials::create(subject, issuer, credType);
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count();
|
||||
jv[sfExpiration.jsonName] = t + 20;
|
||||
@@ -498,7 +498,7 @@ struct Credentials_test : public beast::unit_test::suite
|
||||
auto jv = credentials::create(subject, issuer, credType);
|
||||
// current time in ripple epoch - 1s
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() -
|
||||
1;
|
||||
@@ -725,7 +725,7 @@ struct Credentials_test : public beast::unit_test::suite
|
||||
testcase("CredentialsAccept fail, expired credentials.");
|
||||
auto jv = credentials::create(subject, issuer, credType2);
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count();
|
||||
jv[sfExpiration.jsonName] = t;
|
||||
@@ -870,7 +870,7 @@ struct Credentials_test : public beast::unit_test::suite
|
||||
auto jv = credentials::create(subject, issuer, credType);
|
||||
// current time in ripple epoch + 1000s
|
||||
uint32_t const t = env.current()
|
||||
->info()
|
||||
->header()
|
||||
.parentCloseTime.time_since_epoch()
|
||||
.count() +
|
||||
1000;
|
||||
|
||||
Reference in New Issue
Block a user