code: @GuardedBy("lock")
      protected Peer createPeer(PeerAddress address, VersionMessage ver) {
          return new Peer(params, ver, address, chain, downloadTxDependencyDepth);
      }
docs: You can override this to customise the creation of {@link Peer} objects.