From 4083beeb6c81e2784e3dc6e54d09c14c8bd24663 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 24 Dec 2018 14:34:02 -0500 Subject: [PATCH] wormhole.py: disable dilate() API until ready more importantly, turn off the "we can do Dilation" advertisement for now, since we really can't --- src/wormhole/wormhole.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wormhole/wormhole.py b/src/wormhole/wormhole.py index 95f5146..e17b7a1 100644 --- a/src/wormhole/wormhole.py +++ b/src/wormhole/wormhole.py @@ -192,6 +192,7 @@ class _DeferredWormhole(object): return derive_key(self._key, to_bytes(purpose), length) def dilate(self): + raise NotImplementedError return self._boss.dilate() # fires with (endpoints) def close(self): @@ -275,6 +276,7 @@ def create( "can-dilate": DILATION_VERSIONS, "dilation-abilities": Connector.get_connection_abilities(), } + wormhole_versions = {} # don't advertise Dilation yet: not ready wormhole_versions["app_versions"] = versions # app-specific capabilities v = __version__ if isinstance(v, type(b"")):