mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-01 23:01:15 +03:00
Slight increase of retry on block download before give up
This commit is contained in:
parent
dbaba8aed5
commit
8ded5e23cf
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ impl Syncer {
|
|||
let now = Instant::now();
|
||||
for download in blocks_downloading.deref_mut() {
|
||||
let elapsed = (now - download.start_time).as_secs();
|
||||
if download.retries >= 8 {
|
||||
if download.retries >= 12 {
|
||||
panic!("Failed to download required block {}", download.hash);
|
||||
}
|
||||
if download.retries < (elapsed / 5) as u8 {
|
||||
|
|
Loading…
Add table
Reference in a new issue