Skip to content

Commit

Permalink
Merge pull request #93 from EpicCash/3.4.0
Browse files Browse the repository at this point in the history
3.4.0
  • Loading branch information
johanneshahn authored Jun 10, 2023
2 parents 5e2322b + da67c25 commit 1ecdd85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion servers/src/epic/sync/header_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl HeaderSync {
fn header_sync_due(&mut self) -> bool {
let now = Utc::now().timestamp();

if (now - self.start_time) > 120 {
if (now - self.start_time) > 180 {
let _ = self
.peers
.ban_peer(self.peer.info.addr, ReasonForBan::FraudHeight);
Expand Down Expand Up @@ -129,6 +129,8 @@ impl HeaderSync {
/// Request some block headers from a peer to advance us.
fn request_headers_fastsync(&mut self) {
if let Ok(locator) = self.get_locator() {
self.start_time = Utc::now().timestamp();

if self.offset == 0
&& !self
.peer
Expand Down

0 comments on commit 1ecdd85

Please sign in to comment.