From f90040aa6b9a2dc8a3399296a0f8313562678e5c Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 18 Jul 2024 11:10:22 +0200 Subject: [PATCH] chain: adjust IsSynced to use a 3h leeway --- internal/chain/chainsubscriber.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/chain/chainsubscriber.go b/internal/chain/chainsubscriber.go index 6a7f259c4..2135bac0f 100644 --- a/internal/chain/chainsubscriber.go +++ b/internal/chain/chainsubscriber.go @@ -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 {