[client] Enable network map persistence by default (#3152)

This commit is contained in:
Viktor Liu
2025-01-06 14:11:43 +01:00
committed by GitHub
parent 02a3feddb8
commit f08605a7f1
3 changed files with 4 additions and 3 deletions

View File

@ -1597,7 +1597,7 @@ func (e *Engine) GetLatestNetworkMap() (*mgmProto.NetworkMap, error) {
return nil, nil
}
// Create a deep copy to avoid external modifications
log.Debugf("Retrieving latest network map with size %d bytes", proto.Size(e.latestNetworkMap))
nm, ok := proto.Clone(e.latestNetworkMap).(*mgmProto.NetworkMap)
if !ok {