exploring dht

This commit is contained in:
Alex Grintsvayg 2017-04-10 10:51:49 -04:00
parent 54c29d4a8d
commit 8db7c37fa7
11 changed files with 119 additions and 142 deletions
scripts

View file

@ -22,18 +22,18 @@
import binascii
import hashlib
import random
import twisted.internet.reactor
from lbrynet.dht.node import Node
from lbrynet.core.cryptoutils import get_lbry_hash_obj
# The Entangled DHT node; instantiated in the main() method
node = None
# The key to use for this example when storing/retrieving data
hash = hashlib.sha384()
hash.update("key")
KEY = hash.digest()
h = get_lbry_hash_obj()
h.update("key")
KEY = h.digest()
# The value to store
VALUE = random.randint(10000, 20000)