mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Resetting last shard syncing flags when sync is abandoned.
This commit is contained in:
@@ -157,4 +157,11 @@ namespace ledger
|
||||
candidate_hpfs_responses.splice(candidate_hpfs_responses.end(), p2p::ctx.collected_msgs.ledger_hpfs_responses);
|
||||
}
|
||||
|
||||
void ledger_sync::on_sync_abandoned()
|
||||
{
|
||||
// Reset these flags since we are abandoning the sync.
|
||||
is_last_primary_shard_syncing = false;
|
||||
is_last_blob_shard_syncing = false;
|
||||
}
|
||||
|
||||
} // namespace ledger
|
||||
@@ -13,6 +13,7 @@ namespace ledger
|
||||
private:
|
||||
void swap_collected_responses();
|
||||
void on_current_sync_state_acheived(const hpfs::sync_target &synced_target);
|
||||
void on_sync_abandoned();
|
||||
|
||||
public:
|
||||
std::atomic<bool> is_last_primary_shard_syncing = false;
|
||||
|
||||
Reference in New Issue
Block a user