mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Header check before asking previous on orphan not needed. Fast sync now properly keeps the syncing flag on.
This commit is contained in:
parent
6a6e600e48
commit
09a4c454fa
1 changed files with 2 additions and 4 deletions
|
@ -401,10 +401,8 @@ impl NetToChainAdapter {
|
|||
Err(chain::Error::Orphan) => {
|
||||
// make sure we did not miss the parent block
|
||||
if !chain.is_orphan(&prev_hash) && !self.currently_syncing.load(Ordering::Relaxed) {
|
||||
if let Err(_) = chain.get_block_header(&prev_hash) {
|
||||
debug!(LOGGER, "adapter: process_block: received an orphan block, checking the parent: {:}", prev_hash);
|
||||
self.request_block_by_hash(prev_hash, &addr)
|
||||
}
|
||||
debug!(LOGGER, "adapter: process_block: received an orphan block, checking the parent: {:}", prev_hash);
|
||||
self.request_block_by_hash(prev_hash, &addr)
|
||||
}
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue