From 1d896e8165bb18b978480e6a1c54efa201e3472c Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 18 Apr 2024 10:54:32 +0200 Subject: [PATCH] p2p/discover: fix spin condition --- p2p/discover/table_reval.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2p/discover/table_reval.go b/p2p/discover/table_reval.go index bff2a43fc0..93471d1608 100644 --- a/p2p/discover/table_reval.go +++ b/p2p/discover/table_reval.go @@ -17,6 +17,7 @@ package discover import ( + "math" "slices" "time" @@ -24,7 +25,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/enode" ) -const never = ^mclock.AbsTime(0) +const never = mclock.AbsTime(math.MaxInt64) type tableRevalidation struct { newNodes revalidationList