mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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:
@@ -1248,9 +1248,17 @@ int ApplicationImp::fdlimit() const
|
||||
void
|
||||
ApplicationImp::startGenesisLedger()
|
||||
{
|
||||
std::vector<uint256> initialAmendments =
|
||||
(config_->START_UP == Config::FRESH) ?
|
||||
m_amendmentTable->getDesired() :
|
||||
std::vector<uint256>{};
|
||||
|
||||
std::shared_ptr<Ledger> const genesis =
|
||||
std::make_shared<Ledger>(
|
||||
create_genesis, *config_, family());
|
||||
create_genesis,
|
||||
*config_,
|
||||
initialAmendments,
|
||||
family());
|
||||
m_ledgerMaster->storeLedger (genesis);
|
||||
|
||||
auto const next = std::make_shared<Ledger>(
|
||||
|
||||
Reference in New Issue
Block a user