fixed bug, updated readme
This commit is contained in:
parent
2823b30672
commit
33d0fc898b
@ -1,7 +1,7 @@
|
|||||||
# Python Distributed Hash Table
|
# Python Distributed Hash Table
|
||||||
[![Build Status](https://secure.travis-ci.org/bmuller/kademlia.png?branch=master)](https://travis-ci.org/bmuller/kademlia)
|
[![Build Status](https://secure.travis-ci.org/bmuller/kademlia.png?branch=master)](https://travis-ci.org/bmuller/kademlia)
|
||||||
|
|
||||||
This library is an asynchronous Python implementation of the [Kademlia distributed hash table](http://en.wikipedia.org/wiki/Kademlia). It uses [Twisted]() to provide asynchronous communication. The nodes communicate using [RPC over UDP](https://github.com/bmuller/rpcudp) to communiate, meaning that it is capable of working behind a [NAT](http://en.wikipedia.org/wiki/NAT).
|
This library is an asynchronous Python implementation of the [Kademlia distributed hash table](http://en.wikipedia.org/wiki/Kademlia). It uses [Twisted](https://twistedmatrix.com) to provide asynchronous communication. The nodes communicate using [RPC over UDP](https://github.com/bmuller/rpcudp) to communiate, meaning that it is capable of working behind a [NAT](http://en.wikipedia.org/wiki/NAT).
|
||||||
|
|
||||||
This library aims to be as close to a reference implementation of the [Kademlia paper](http://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf) as possible.
|
This library aims to be as close to a reference implementation of the [Kademlia paper](http://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf) as possible.
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ class ValueSpiderCrawl(SpiderCrawl):
|
|||||||
elif response.hasValue():
|
elif response.hasValue():
|
||||||
foundValues.append(response.getValue())
|
foundValues.append(response.getValue())
|
||||||
else:
|
else:
|
||||||
peer = self.nearest.getById(peerid)
|
peer = self.nearest.getNodeById(peerid)
|
||||||
self.nearestWithoutValue.push(peer)
|
self.nearestWithoutValue.push(peer)
|
||||||
self.nearest.push(response.getNodeList())
|
self.nearest.push(response.getNodeList())
|
||||||
self.nearest.remove(toremove)
|
self.nearest.remove(toremove)
|
||||||
|
Loading…
Reference in New Issue
Block a user