From 3e51512aec567e54d8aa0949933ab04f8ab7ad00 Mon Sep 17 00:00:00 2001 From: Leopold Schabel Date: Thu, 3 Mar 2022 21:18:41 +0100 Subject: [PATCH] node/pkg/common: fix guardian set state cleanup (#891) --- node/pkg/common/guardianset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/pkg/common/guardianset.go b/node/pkg/common/guardianset.go index fd876d289..ab65916f2 100644 --- a/node/pkg/common/guardianset.go +++ b/node/pkg/common/guardianset.go @@ -145,7 +145,7 @@ func (st *GuardianSetState) Cleanup() { for addr, v := range st.lastHeartbeats { for peerId, hb := range v { - ts := time.Unix(hb.Timestamp, 0) + ts := time.Unix(0, hb.Timestamp) if time.Since(ts) > MaxStateAge { delete(st.lastHeartbeats[addr], peerId) }