node/pkg/common: fix guardian set state cleanup (#891)

This commit is contained in:
Leopold Schabel 2022-03-03 21:18:41 +01:00 committed by GitHub
parent f4f6589352
commit 3e51512aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}