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:
Devon White
2020-05-15 17:21:16 -04:00
committed by manojsdoshi
parent 21340a1c1e
commit ac766ec0eb
22 changed files with 977 additions and 926 deletions

View File

@@ -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;