A roughly skeleton of floodsub.publish

Still need to ensure when to deliver to ourselves
This commit is contained in:
mhchia
2019-07-24 22:33:32 +08:00
parent 3f52b0dc0a
commit 93cf5a2c32
2 changed files with 67 additions and 29 deletions

View File

@ -16,6 +16,9 @@ class ID:
def __init__(self, id_str):
self._id_str = id_str
def to_bytes(self) -> bytes:
return self._id_str
def get_raw_id(self):
return self._id_str