Skip to content

Commit e1a517d

Browse files
authored
loosen the merkle gap check (keybase#26258)
1 parent e20dfbe commit e1a517d

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎go/kbfs/libkbfs/md_ops.go‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@ import (
2626
)
2727

2828
const (
29-
maxAllowedMerkleGapServer = 13 * time.Hour
30-
// Our contract with the server states that it won't accept KBFS
31-
// writes if more than 13 hours have passed since the last Merkle
32-
// roots (both global and KBFS) were published. Add some padding
33-
// to that, and if we see any gaps larger than this, we will know
34-
// we shouldn't be trusting the server. TODO: reduce this once
35-
// merkle computation is faster.
36-
maxAllowedMerkleGap = maxAllowedMerkleGapServer + 15*time.Minute
29+
// Update 2024-02-16: we decided to increase the merkle gap check to 4 days
30+
// in case mdmerkle goes down, to give us more time to fix it.
31+
maxAllowedMerkleGapServer = 4 * (time.Hour * 24)
32+
maxAllowedMerkleGap = maxAllowedMerkleGapServer + 15*time.Minute
3733

3834
// merkleGapEnforcementStartString indicates when the mdserver
3935
// started rejecting new writes based on the lack of recent merkle

0 commit comments

Comments
 (0)