mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Introduce ShardArchiveHandler improvements:
* Improve documentation * Make the ShardArchiveHandler rather than the DatabaseShardImp perform LastLedgerHash verification for downloaded shards * Remove ShardArchiveHandler's singleton implementation and make it an Application member * Have the Application invoke ShardArchiveHandler initialization instead of clients * Add RecoveryHandler as a ShardArchiveHandler derived class * Improve commenting
This commit is contained in:
@@ -45,7 +45,7 @@ DatabaseDownloader::getParser(
|
||||
if (ec)
|
||||
{
|
||||
p->get().body().close();
|
||||
fail(dstPath, complete, ec, "open");
|
||||
fail(dstPath, complete, ec, "open", nullptr);
|
||||
}
|
||||
|
||||
return p;
|
||||
@@ -69,7 +69,7 @@ DatabaseDownloader::closeBody(std::shared_ptr<parser> p)
|
||||
databaseBodyParser->get().body().close();
|
||||
}
|
||||
|
||||
uint64_t
|
||||
std::uint64_t
|
||||
DatabaseDownloader::size(std::shared_ptr<parser> p)
|
||||
{
|
||||
using namespace boost::beast;
|
||||
|
||||
Reference in New Issue
Block a user