docs: function syncPeer (node) {
  
      // Global sync vars
      const remotePeer = Peer.fromJSON({});
      let remoteJsonPeer = {};
  
      return co(function *() {
        const json = yield node.getPeer();
        remotePeer.version = json.version
        remotePeer.currency = json.currency
        remotePeer.pub = json.pub
        remotePeer.endpoints = json.endpoints
        remotePeer.blockstamp = json.block
        remotePeer.signature = json.signature
        const entry = remotePeer.getRawUnsigned();
        const signature = dos2unix(remotePeer.signature);
        // Parameters
        if(!(entry && signature)){
          throw 'Requires a peering entry + signature';
        }
  
        remoteJsonPeer = json;
        remoteJsonPeer.pubkey = json.pubkey;
        let signatureOK = PeeringService.checkPeerSignature(remoteJsonPeer);
        if (!signatureOK) {
          watcher.writeStatus('Wrong signature for peer #' + remoteJsonPeer.pubkey);
        }
        try {
          yield PeeringService.submitP(remoteJsonPeer);
        } catch (err) {
          if (err.indexOf !== undefined && err.indexOf(constants.ERRORS.NEWER_PEER_DOCUMENT_AVAILABLE.uerr.message) !== -1 && err != constants.ERROR.PEER.UNKNOWN_REFERENCE_BLOCK) {
            throw err;
          }
        }
      });
    }