mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
Compare commits
3 Commits
3f742fe3d5
...
4f53573cf5
Author | SHA1 | Date | |
---|---|---|---|
|
4f53573cf5 | ||
|
f1a1c39332 | ||
|
7caaa14b93 |
@ -99,7 +99,7 @@ impl MineRangeConfig {
|
||||
}
|
||||
Some(
|
||||
self_start_position <= recall_position + SECTORS_PER_LOAD as u64
|
||||
|| self_end_position > recall_position,
|
||||
&& self_end_position > recall_position,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ pub(crate) async fn check_and_request_miner_id(
|
||||
d_id, c_id
|
||||
))
|
||||
} else {
|
||||
check_miner_id(&mine_contract, d_id).await?;
|
||||
Ok(d_id)
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ impl<'a> Miner<'a> {
|
||||
"Find a PoRA valid answer, quality: {}, target_quality {}, scale {:.3}",
|
||||
U256::MAX / quality,
|
||||
U256::MAX / self.target_quality,
|
||||
difficulty_scale_x64.as_u128() as f64 / (u64::MAX as f64 + 1.0)
|
||||
difficulty_scale_x64.as_u128() as f64 / u64::MAX as f64
|
||||
);
|
||||
inc_counter(&HIT_COUNT);
|
||||
// Undo mix data when find a valid solition
|
||||
|
@ -5,6 +5,16 @@ ZGS_CONFIG = {
|
||||
"confirmation_block_count": 1,
|
||||
"router": {
|
||||
"private_ip_enabled": True,
|
||||
},
|
||||
"sync": {
|
||||
"heartbeat_interval": "1s",
|
||||
"peer_connect_timeout": "3s",
|
||||
"peer_disconnect_timeout": "3s",
|
||||
"peer_find_timeout": "3s",
|
||||
"peer_chunks_download_timeout": "3s",
|
||||
"auto_sync_idle_interval": "1s",
|
||||
"sequential_find_peer_timeout": "10s",
|
||||
"random_find_peer_timeout": "10s",
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user