func ConvPeerList(msg *types.PeerList) *InOutPeerList {
    if msg == nil {
        return nil
    }