mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Refactor RippleCalc:
* Rationalize method and filenames, move to subdirectory. * Use Issue in Node. * Restrict access to PathState variables. * Line length and readability cleanups. * New PathCursor stores path calculation data during rippleCalc. * Extract methods PathCursor::node(), PathCursor::previousNode() and RippleCalc::addPath
This commit is contained in:
committed by
Vinnie Falco
parent
c59fc332d5
commit
194304e544
@@ -1111,7 +1111,7 @@ void ApplicationImp::startNewLedger ()
|
||||
|
||||
{
|
||||
Ledger::pointer firstLedger = std::make_shared<Ledger> (rootAddress, SYSTEM_CURRENCY_START);
|
||||
assert (!!firstLedger->getAccountState (rootAddress));
|
||||
assert (firstLedger->getAccountState (rootAddress));
|
||||
// TODO(david): Add any default amendments
|
||||
// TODO(david): Set default fee/reserve
|
||||
firstLedger->updateHash ();
|
||||
@@ -1123,7 +1123,7 @@ void ApplicationImp::startNewLedger ()
|
||||
secondLedger->setClosed ();
|
||||
secondLedger->setAccepted ();
|
||||
m_ledgerMaster->pushLedger (secondLedger, std::make_shared<Ledger> (true, std::ref (*secondLedger)));
|
||||
assert (!!secondLedger->getAccountState (rootAddress));
|
||||
assert (secondLedger->getAccountState (rootAddress));
|
||||
m_networkOPs->setLastCloseTime (secondLedger->getCloseTimeNC ());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user