Fixed full history hpfs log syncing issues (#311)

This commit is contained in:
Chalith Desaman
2021-05-19 19:06:47 +05:30
committed by GitHub
parent 45492f7c7f
commit 2bb6be0ce5
4 changed files with 54 additions and 27 deletions

View File

@@ -278,7 +278,7 @@ namespace consensus
// When requesting the next seq_no, serving peer will give all the hpfs logs upto it's latest.
// So hash mismatch won't happen in the next round.
if (!ledger::ledger_sync_worker.is_last_primary_shard_syncing)
sc::hpfs_log_sync::set_sync_target(lcl_id.seq_no + 1);
sc::hpfs_log_sync::set_sync_target(lcl_id.seq_no + 1, hpfs::get_root_hash(majority_patch_hash, majority_state_hash));
}
else
{