Giter Club home page Giter Club logo

dhtbot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dhtbot's Issues

Calling get_iterate on a KRPC_Iterator_Server causes a pickling error

>>> p = k.get_iterate(ap, n)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/client.py", line 64, in get_iterate
    return self._deflate_call_inflate(args, self.server.get_iterate)
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/client.py", line 33, in _deflate_call_inflate
    return inflate(deflated_result)
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/common.py", line 7, in inflate
    return pickle.loads(data)
  File "/usr/lib64/python2.6/pickle.py", line 1374, in loads
    return Unpickler(file).load()
  File "/usr/lib64/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib64/python2.6/pickle.py", line 1133, in load_reduce
    value = func(*args)
TypeError: __init__() takes exactly 2 arguments (1 given)

Pickling error when calling find_iterate on KRPC_Iterator_Server


>>> nodes = set()
>>> update_loop(nodes)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/greg/src/DHTBot/bin/start_client", line 26, in update_loop
    new_nodes = k.find_iterate(rand_id(), nodes)
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/client.py", line 60, in find_iterate
    return self._deflate_call_inflate(args, self.server.find_iterate)
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/client.py", line 49, in _deflate_call_inflate
    return inflate(deflated_result)
  File "/home/greg/src/DHTBot/dhtbot/xml_rpc/common.py", line 7, in inflate
    return pickle.loads(data)
  File "/usr/lib64/python2.6/pickle.py", line 1374, in loads
    return Unpickler(file).load()
  File "/usr/lib64/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib64/python2.6/pickle.py", line 1133, in load_reduce
    value = func(*args)
TypeError: __init__() takes exactly 2 arguments (1 given)

Add intelligent Sybil detection

Detecting the Sybil's is one aspect. It is also important to react smartly to a Sybil. Implement a per-IP blacklist? Prune Sybil's from the routing table?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.