Permalink
Browse files

wormhole.py: disable dilate() API until ready

more importantly, turn off the "we can do Dilation" advertisement for now,
since we really can't
  • Loading branch information...
warner committed Dec 24, 2018
1 parent 69bab3d commit 4083beeb6c81e2784e3dc6e54d09c14c8bd24663
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/wormhole/wormhole.py
@@ -192,6 +192,7 @@ def derive_key(self, purpose, length):
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"")):

0 comments on commit 4083bee

Please sign in to comment.