Commit Graph

108 Commits

Author SHA1 Message Date
Eloahman
080ed21627 Periodic refresh issue fixed for Python3 2016-08-02 09:55:49 -04:00
Brian Muller
f3d1d2e6a5 fixed issue with refreshTable not using correct spider api 2016-08-01 13:41:26 -04:00
Brian Muller
464ae5bd1f library now uses asyncio instead of twisted 2016-07-12 08:32:02 -04:00
Brian Muller
6bbd1bfa42 Revert "Comment change"
This reverts commit b37b65cd10.
2016-04-07 10:22:11 +03:00
Prabodh Agarwal
b37b65cd10 Comment change
Added comments for interface as changed in listen() to reflect in kademlia.readthedocs,org page.
2016-04-07 10:16:45 +03:00
Brian Muller
32e4cb7ff6 make sure pyflakes / pep8 run on travis build 2016-04-07 09:47:08 +03:00
Brian Muller
9549bc6a5b make sure that linting is a part of automated tests 2016-04-07 09:42:40 +03:00
Brian Muller
87ea77d12d formating update, bumped version 2016-04-07 09:39:29 +03:00
Prabodh Agarwal
7b29c50c79 Provide ipv6 address support
Provide ipv6 address support
2016-04-07 09:35:37 +03:00
Brian Muller
b9b23e1131 Merge pull request #13 from SkyZH/patch-1
Clean up midpoint calculation in routing table.
2015-10-16 12:03:18 -04:00
呆萌的弛哥SkyZH在银光闪烁的沙滩上面对大海写代码
ac7b3c12ab Update routing.py 2015-10-16 23:49:54 +08:00
呆萌的弛哥SkyZH在银光闪烁的沙滩上面对大海写代码
a9e390126c Update routing.py 2015-10-16 23:43:11 +08:00
Brian Muller
00ecaf5e31 Merge pull request #3 from cpacia/transfer
Bug fixes when transferring key/values
2015-08-09 16:17:12 -04:00
Brian Muller
77186bbf6f added docs to indicate failure state if attempt to save w/o redundancy, closing #5 2015-08-04 17:31:58 -04:00
Chris
237d89b6b6 Created new method welcomeIfNewNode in protocol.
This commit consolidates the maybeTransferKeyValues and addContact calls into
the transferKeyValues method and renames it.
2015-07-17 21:34:25 -04:00
Chris
2f363cba84 Maybe transfer key, values on incoming request.
The existing code only checks if we should call transferKeyValues when we
receive a response to one of our RPCs. We also need to check when receive a
new request from a new node.

This commit adds a new method that is called each time we receive a new request.
2015-07-14 21:29:48 -04:00
Chris
f5b2c13d93 Bug fix in protocol.handleCallResponse
isNewNode was called after the contact was added to the routing table meaning
it would always return false and the key/values would never be transferred.
2015-07-14 21:18:57 -04:00
Brian Muller
ccf18622b4 fixed issue getting keys in networks of size 2 2015-07-07 13:20:13 -04:00
Brian Muller
89f04cf558 bumped version to 0.5 2015-06-27 15:11:55 -04:00
Brian Muller
30dd82082c Merge pull request #2 from muneeb-ali/patch-1
Update intro.rst
2015-06-04 18:12:31 -04:00
Muneeb Ali
e4e0fc6f03 Update intro.rst 2015-06-04 17:58:01 -04:00
Brian Muller
42b6c949ac Merge pull request #1 from cpacia/nodeheapfix
Bug fix in NodeHeap - no duplicates
2015-06-04 16:16:03 -04:00
cpacia
0338af9b83 added __contains__ method to NodeHeap 2015-06-04 16:06:25 -04:00
cpacia
088699bfbb Bug fix in NodeHeap
When running with a large number of nodes it fails to send the store request
to the k closest nodes and instead ends up sending multiple store requests to
the same 4 or 5 nodes.

It appears the cause is a bug in NodeHeap which allows the same node to be
pushed onto the heap multiple times bumping out other legimate nodes.

This pull request just adds some logic to make sure the node isn't already
in the heap before pushing.
2015-06-03 18:05:20 -04:00
Brian Muller
d222050025 added an example of a web interface being added to a node 2015-01-12 15:47:06 -05:00
Brian Muller
c0b05eb6d3 added a query script and test for utils 2015-01-06 21:52:01 -05:00
Brian Muller
d126479bce added link to docs 2015-01-05 13:51:33 -05:00
Brian Muller
9db51018cd updated docs 2015-01-05 13:44:39 -05:00
Brian Muller
7045a12e3c added requirements.txt for docs 2015-01-05 10:39:32 -05:00
Brian Muller
7f4d380761 added start to sphinx docs 2015-01-05 10:32:24 -05:00
Brian Muller
ae7a90926b fixed default storage culling bug, linted, bumped version to 0.4 2015-01-04 14:40:52 -05:00
Brian Muller
c6f1062082 fixed issue with server saving empty node list when caching to disk for first run 2014-12-26 20:57:43 +01:00
Brian Muller
4b8eaf7c5f added another link to twisted in readme 2014-12-26 13:12:50 +01:00
Brian Muller
4d4508540f bumped version to 0.2 2014-12-12 09:48:22 -05:00
Brian Muller
b4ce8133fa paired down storage interface 2014-12-09 17:02:48 -05:00
Brian Muller
a7c0a75b8d added interface for storage and the ability to pass an instance to the Server constructor 2014-12-09 16:55:44 -05:00
Brian Muller
33d0fc898b fixed bug, updated readme 2014-03-25 08:37:25 -04:00
Brian Muller
2823b30672 updated some docs 2014-01-19 23:22:40 -05:00
Brian Muller
8aab226598 fixed examples 2014-01-19 23:04:22 -05:00
Brian Muller
7418819f7a updated readme 2014-01-19 22:27:12 -05:00
Brian Muller
7f07662657 new nodes are now given keys to store based on section 2.5 of the paper 2014-01-19 22:26:17 -05:00
Brian Muller
21dc0cca39 now republishing keys once an hour 2014-01-19 21:30:36 -05:00
Brian Muller
61631b21db fixed bug in router initialization 2014-01-19 14:12:04 -05:00
Brian Muller
29c9afbc03 updated readme 2014-01-19 14:05:26 -05:00
Brian Muller
670958f946 now splitting buckets completely per section 4.2 of paper 2014-01-19 14:02:13 -05:00
Brian Muller
c370c8b95b now storing replacement cache in buckets in the routing table 2014-01-19 13:20:02 -05:00
Brian Muller
7962e43a6c reworked spiders, network now storing closest node w/o value if found 2014-01-19 12:21:16 -05:00
Brian Muller
ca49cde8f2 set now returns true only if value set in at least one other place 2014-01-18 12:55:34 -05:00
Brian Muller
e99d87c0e8 fixed a few bugs 2014-01-14 18:21:40 -05:00
Brian Muller
e2b748a108 fixed stun call 2014-01-13 22:41:31 -05:00