Use global login expiration setting when sending network map (#731)

Peers were considered expired and not sent to remote peers
when global expiration was disabled.
This commit is contained in:
Misha Bragin
2023-03-09 11:24:42 +01:00
committed by GitHub
parent c65a5acab9
commit 9ce8056b17
5 changed files with 126 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ func Test_SyncProtocol(t *testing.T) {
}
if len(networkMap.GetRemotePeers()) != 3 {
t.Fatal("expecting SyncResponse to have NetworkMap with 3 remote peers")
t.Fatalf("expecting SyncResponse to have NetworkMap with 3 remote peers, got %d", len(networkMap.GetRemotePeers()))
}
// expired peers come separately.