hpfs binary update, hpfs log serving and passing to hpfs (#281)

* full history announcement in peer challenge and ability to send random messages only to full history nodes.

* log sync infrastructure codes.

* Resolving merge conflict  induced errors.

* Fork detection implementation.

* Cleanup.

* Resolving PR comments.

* hpfs binary update, hpfs log serving and persisting

* Fixed merge conflict and added missing log

Co-authored-by: Savinda Senevirathne <savindadilsara@gmail.com>
This commit is contained in:
Chalith Desaman
2021-04-01 17:13:58 +05:30
committed by GitHub
parent bba5266f5d
commit 5833431157
10 changed files with 247 additions and 104 deletions

View File

@@ -232,7 +232,7 @@ namespace p2p
LOG_DEBUG << "Ledger hpfs response rejected. Maximum response count reached. " << session.display_name();
}
}
else if (mi.type == p2pmsg::P2PMsgContent_LogRecordRequest)
else if (mi.type == p2pmsg::P2PMsgContent_HpfsLogRequest)
{
if (conf::cfg.node.history == conf::HISTORY::FULL)
{
@@ -249,7 +249,7 @@ namespace p2p
LOG_DEBUG << "Hpfs log request rejected. Maximum request count reached. " << session.display_name();
}
}
else if (mi.type == p2pmsg::P2PMsgContent_LogRecordResponse)
else if (mi.type == p2pmsg::P2PMsgContent_HpfsLogResponse)
{
if (conf::cfg.node.history == conf::HISTORY::FULL && sc::hpfs_log_sync::sync_ctx.is_syncing)
{