Skip to content

Commit

Permalink
Add MaxRecordAge for DHT entries
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Apr 30, 2024
1 parent 6c1815f commit 38d0f0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/network/p2p/autopeering/autopeering.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (m *Manager) Start(ctx context.Context, networkID string, bootstrapPeers []
dht.ProtocolExtension(extension),
dht.AddressFilter(m.addrFilter),
dht.BootstrapPeers(bootstrapPeers...),
dht.MaxRecordAge(10*time.Minute),
)
if innerErr != nil {
err = innerErr
Expand Down

0 comments on commit 38d0f0d

Please sign in to comment.