mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Consensus cleanup:
* Inject dependencies, make functions free and levelize * Add comments to document the intent behind the code * Reduce class public interfaces * Remove support for proposals without ledger hashes
This commit is contained in:
committed by
Tom Ritchford
parent
1b4e0f5f48
commit
dd902292ed
@@ -1592,16 +1592,6 @@ void Ledger::updateSkipList ()
|
||||
}
|
||||
}
|
||||
|
||||
std::uint32_t Ledger::roundCloseTime (
|
||||
std::uint32_t closeTime, std::uint32_t closeResolution)
|
||||
{
|
||||
if (closeTime == 0)
|
||||
return 0;
|
||||
|
||||
closeTime += (closeResolution / 2);
|
||||
return closeTime - (closeTime % closeResolution);
|
||||
}
|
||||
|
||||
/** Save, or arrange to save, a fully-validated ledger
|
||||
Returns false on error
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user