Commit Graph

46 Commits

Author SHA1 Message Date
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
Brian Muller
10925520c4 added stun rpc method 2014-01-13 22:25:51 -05:00
Brian Muller
abf5fe19ad fixed a few bugs 2014-01-13 21:44:44 -05:00
Brian Muller
9e8d239d73 updated api 2014-01-13 19:49:16 -05:00
Brian Muller
ee0c6b9bd5 added travis file and some more tests 2014-01-04 14:27:45 -05:00
Brian Muller
2a4802f56f added more tests 2014-01-03 17:58:09 -05:00
Brian Muller
f7e8bd9442 started writing tests 2014-01-03 17:50:49 -05:00
Brian Muller
75a97fb8f1 fixed bootstrap process 2014-01-02 23:06:12 -05:00
Brian Muller
d29a532abd first commit 2014-01-02 21:39:06 -05:00