Skip to content

Commit cb8ef3b

Browse files
fjlenriquefynn
authored andcommitted
cmd/devp2p: tweak DNS TTLs (ethereum#20801)
* cmd/devp2p: tweak DNS TTLs * cmd/devp2p: bump treeNodeTTL to four weeks
1 parent 3ece126 commit cb8ef3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/devp2p/dnscmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ var (
9797
)
9898

9999
const (
100-
rootTTL = 1
101-
treeNodeTTL = 2147483647
100+
rootTTL = 30 * 60 // 30 min
101+
treeNodeTTL = 4 * 7 * 24 * 60 * 60 // 4 weeks
102102
)
103103

104104
// dnsSync performs dnsSyncCommand.

0 commit comments

Comments
 (0)