Skip to content

Commit

Permalink
chain: adjust IsSynced to use a 3h leeway
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan authored and ChrisSchinnerl committed Jul 29, 2024
1 parent 0d7ca7f commit f90040a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chain/chainsubscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func (s *ChainSubscriber) updateKnownContracts(fcid types.FileContractID, known
}

func IsSynced(b types.Block) bool {
return time.Since(b.Timestamp) <= time.Hour
return time.Since(b.Timestamp) <= 3*time.Hour
}

func v1ContractUpdate(fce types.FileContractElement, rev *types.FileContractElement, resolved, valid bool) contractUpdate {
Expand Down

0 comments on commit f90040a

Please sign in to comment.