mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Enable amendments in genesis ledger (RIPD-1281)
When started with "--start", put all known, non-vetoed amendments in the genesis ledger. This avoids the need to wait 256 ledgers before amendments are enabled when testing with a fresh ledger.
This commit is contained in:
@@ -152,7 +152,8 @@ class View_test
|
||||
Config config;
|
||||
std::shared_ptr<Ledger const> const genesis =
|
||||
std::make_shared<Ledger>(
|
||||
create_genesis, config, env.app().family());
|
||||
create_genesis, config,
|
||||
std::vector<uint256>{}, env.app().family());
|
||||
auto const ledger =
|
||||
std::make_shared<Ledger>(
|
||||
*genesis,
|
||||
@@ -417,7 +418,8 @@ class View_test
|
||||
Config config;
|
||||
std::shared_ptr<Ledger const> const genesis =
|
||||
std::make_shared<Ledger> (
|
||||
create_genesis, config, env.app().family());
|
||||
create_genesis, config,
|
||||
std::vector<uint256>{}, env.app().family());
|
||||
auto const ledger = std::make_shared<Ledger>(
|
||||
*genesis,
|
||||
env.app().timeKeeper().closeTime());
|
||||
@@ -751,7 +753,8 @@ class View_test
|
||||
Config config;
|
||||
std::shared_ptr<Ledger const> const genesis =
|
||||
std::make_shared<Ledger>(
|
||||
create_genesis, config, env.app().family());
|
||||
create_genesis, config,
|
||||
std::vector<uint256>{}, env.app().family());
|
||||
auto const ledger =
|
||||
std::make_shared<Ledger>(
|
||||
*genesis,
|
||||
|
||||
Reference in New Issue
Block a user