mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Update to new ledger code.
This commit is contained in:
@@ -112,11 +112,12 @@ void Application::run()
|
|||||||
|
|
||||||
Ledger::pointer firstLedger(new Ledger(rootAddress, 100000000));
|
Ledger::pointer firstLedger(new Ledger(rootAddress, 100000000));
|
||||||
assert(!!firstLedger->getAccountState(rootAddress));
|
assert(!!firstLedger->getAccountState(rootAddress));
|
||||||
|
firstLedger->updateHash();
|
||||||
firstLedger->setClosed();
|
firstLedger->setClosed();
|
||||||
firstLedger->setAccepted();
|
firstLedger->setAccepted();
|
||||||
mMasterLedger.pushLedger(firstLedger);
|
mMasterLedger.pushLedger(firstLedger);
|
||||||
|
|
||||||
Ledger::pointer secondLedger = firstLedger->closeLedger(time(NULL));
|
Ledger::pointer secondLedger = boost::make_shared<Ledger>(firstLedger);
|
||||||
mMasterLedger.pushLedger(secondLedger);
|
mMasterLedger.pushLedger(secondLedger);
|
||||||
assert(!!secondLedger->getAccountState(rootAddress));
|
assert(!!secondLedger->getAccountState(rootAddress));
|
||||||
mMasterLedger.setSynced();
|
mMasterLedger.setSynced();
|
||||||
|
|||||||
Reference in New Issue
Block a user