Commit graph

79 commits

Author SHA1 Message Date
Alex Grintsvayg
21017a38a7
update dht seed nodes 2020-03-16 11:19:19 -04:00
Niko Storni
dd2171172d update to v2 2019-10-10 05:07:33 +02:00
Niko Storni
f3a1fbdd53 use the right library 2019-08-28 15:12:28 +02:00
Alex Grintsvayg
30c3125016 update dht imports 2019-01-09 17:37:29 -05:00
Alex Grintsvayg
cff5ed9711 some linting 2018-08-30 20:20:15 -04:00
Alex Grintsvayg
544ee88311 fixed a few reflector issues, added some tests 2018-08-09 15:46:40 -04:00
Alex Grintsvayg
2bf37ffd03 final fix 2018-08-07 12:06:02 -04:00
Alex Grintsvayg
8cd69c1a17 fixed or silenced the last few things to get this building 2018-08-07 11:53:29 -04:00
Alex Grintsvayg
0a54d4da56 fixed some linting errors
found them using

```
gometalinter --skip=vendor --disable-all --enable=megacheck --enable=deadcode --enable=ineffassign --enable=interfacer --enable=errcheck ./...
```
2018-08-07 11:38:56 -04:00
Alex Grintsvayg
d9b4c0f94d fix rpc server 2018-08-07 11:10:12 -04:00
Alex Grintsvayg
299f718f25 update dependencies, only run short tests in travis 2018-08-06 19:52:34 -04:00
Alex Grintsvayg
f701b78160 fix stuck goroutine 2018-08-06 19:52:09 -04:00
Alex Grintsvayg
38eaa17a9b announce still needs tests, but i tested a lot by hand and its good 2018-07-26 21:30:22 -04:00
Alex Grintsvayg
5378fcbb94 hash announcer / rate limiter 2018-07-26 16:05:27 -04:00
Alex Grintsvayg
965bed9587 refactor contact sort 2018-07-25 11:44:11 -04:00
Jack Robison
0151982bea more
-add rpc_port argument
-run node on localhost for testing
2018-07-17 17:19:03 -04:00
Alex Grintsvayg
f068daf0b8 handle peer port correctly 2018-07-13 13:31:54 -04:00
Alex Grintsvayg
283ec46bd5 Revert "add tcp port mapping to data store"
This reverts commit 76b0e156366163ad9caae988253f66680a4c5bec.
2018-07-13 12:49:41 -04:00
Jack Robison
c2d0c0a2d9 iterative find value rpc command
-add NodeID to GetRoutingTable response

-remove other debugging commands
2018-07-13 11:25:08 -04:00
Jack Robison
b136ac26ce add jack.lbry.tech as a known node for debugging 2018-07-13 11:24:11 -04:00
Jack Robison
a98d10fbd5 add tcp port mapping to data store 2018-07-13 11:23:18 -04:00
Alex Grintsvayg
a3d0a3543a bucket splitting is solid 2018-07-12 14:34:24 -04:00
Jack Robison
6e80d3d8e1 add dht start command, run a jsonrpc server to interact with the node 2018-07-12 10:17:14 -04:00
Alex Grintsvayg
5cdcdfdd09 grin's cleanup and some WIP 2018-07-10 17:35:02 -04:00
Jack Robison
a3ac49182c more 2018-06-29 17:03:59 -04:00
Jack Robison
7b8ab21b6c expand empty buckets 2018-06-29 13:33:35 -04:00
Jack Robison
1b41525f4b add BucketRange to bucket struct
-initialize the routing table with one bucket covering the entire keyspace
2018-06-26 16:31:29 -04:00
Alex Grintsvayg
6fefcc4530 oops 2018-06-26 10:58:19 -04:00
Alex Grintsvayg
4e78c08818 partial switch to new stopgroup. need to refactor to take advantage of child cancelation 2018-06-25 16:49:40 -04:00
Alex Grintsvayg
66ca77b690 remove sendCancelable 2018-06-25 15:56:45 -04:00
Alex Grintsvayg
e534f5b972 correct node_finder to use loose parallelism 2018-06-25 15:48:57 -04:00
Alex Grintsvayg
ea9b181d16 broke out contact into separate file 2018-06-25 13:00:55 -04:00
Alex Grintsvayg
767e4cc548 better nodefinder logging 2018-06-22 09:30:16 -04:00
Alex Grintsvayg
8a620a82a3 minor fixes 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
f61ea53c8c add token cache 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
766f4f101d TODO: review this 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
18caec8d40 add proto version to dht 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
1c2175df39 fixed a few channel lockups, fixed announced port in dht, successfully announced and served a blob 2018-06-21 11:26:48 -04:00
Alex Grintsvayg
47a732688d small test 2018-06-19 14:06:35 -04:00
Alex Grintsvayg
5e346cc21a cluster automatically balances what nodes are announcing what hashes 2018-06-19 13:47:13 -04:00
Alex Grintsvayg
b19df481da starting to put together the pieces
- prism start command
- more configs for prism when assembling the pieces
- cluster notifies on membership change, determines hash range, announces hashes
2018-06-14 22:30:38 -04:00
Alex Grintsvayg
fc9b05b8c6 move bitmap into separate package 2018-06-14 20:10:44 -04:00
Alex Grintsvayg
5968953d05 fix some stoppers 2018-06-13 12:45:47 -04:00
Mark Beamer Jr
63e58248cc Addressed code reviews. 2018-06-13 09:44:24 -04:00
Mark Beamer Jr
470e3721d0 implemented stopper pattern
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
-Implemented stopper param for reflector server
-Aligned Cluster New to NewCluster
-Adjusted DHT to use StopAndWait
-Removed blocking waitgroup add
-Unified all components under prism.
-Moved defer done outside of functions.
-renamed NewCluster to New
-fixed travis errors.
2018-06-13 09:36:44 -04:00
Mark Beamer Jr
8100010220 code cleanup
-Added travis support
-updated travis to analyze code beneath the root.
-refactored upload.go to fix travis errors.
-gocyclo should ignore test files. $GOFILES needed to be adjusted.
-fix rows.Close() ignoring error. Created func to handle so defer can be used when needed also.
-fixed ignored errors.
-fixed unit test that was not passing correctly to anonymous function.
-fixed govet error for passing param inside go func.
-removed returned error, in favor of logging instead.
-added error logging for ignored error.
-fixed potential race conditions.
-removed unused append
-fixed time usage to align with go standards.
-removed unused variables
-made changes for code review.
-code comments for exported functions.
-Documented bitmap.go and insert into contact list.
-Documented dht, message, bootstrap
-Fixed comment typos
-Documented message,node, routing_table, testing in DHT package.
-Documented server, client, prism, server and shared in peer and reflector packages.
-Documented the stores in Store package.
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
2018-06-13 09:29:13 -04:00
Alex Grintsvayg
79527da8a9 get rid of ReadDeadline, switch to updated stopOnce 2018-05-24 17:49:43 -04:00
Alex Grintsvayg
6a0cab5f62 update stopper 2018-05-24 13:05:05 -04:00
Alex Grintsvayg
1c31e54860 self-store 2018-05-22 12:27:49 -04:00
Alex Grintsvayg
13321b53b4 reannounce 2018-05-22 12:16:08 -04:00