Commit graph

497 commits

Author SHA1 Message Date
Niko Storni 42deb1d29d
address more errors
increase room for fees (Jeremy says just pay more)
add code to wait for daemon startup
2018-07-12 08:21:16 -04:00
Niko Storni c5c66eac14
increase the margin for fees
decrease number of addresses to use (we fall back to waiting for a block)
2018-07-12 08:21:16 -04:00
Niko Storni 7776b3a592
added timeout to utxo waiting
added more error handling
2018-07-12 08:21:16 -04:00
Niko Storni 34bb0baa4a
add slack logging
reduce claim name length (fees are too high)
delete videos in case of failure too
reduce synced videos to 1000 most recent
2018-07-12 08:21:15 -04:00
Niko Storni b9f302e316
address more errors for better automation 2018-07-12 08:21:15 -04:00
Niko Storni e600fb59fa
add fail state
add panic/edge cases
add marking channels as completed/failed
2018-07-12 08:19:05 -04:00
Niko Storni c0be626ef2
add selfsync cmd
add tests
add more slack updates
remove unneded test
extract constants to own file
2018-07-12 08:19:05 -04:00
Niko Storni 7754abf1d0
add tests 2018-07-12 08:19:05 -04:00
Niko Storni efd6a4b620
fix wallet refill handler
add slack logging
add PoC for channel fetching
2018-07-12 08:18:58 -04:00
Mark 06a20b7d5e
Merge pull request #21 from lbryio/cast_constraint_update
changed constraint as it affects internal-apis changes.
2018-07-11 12:43:39 -04:00
Mark Beamer Jr 3199079ffc changed constraint as it affects internal-apis changes. 2018-07-11 12:36:55 -04:00
Alex Grintsvayg 91202ab6ff
small api fixes 2018-07-11 12:26: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
Alex Grintsvayg 2134a817f3
change bech32 prefix, add genesis hash, write our own DecodeAddress 2018-06-27 16:27:09 -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 11f29a9d9e
export auth errors 2018-06-26 14:32:45 -04:00
Alex Grintsvayg 6fefcc4530 oops 2018-06-26 10:58:19 -04:00
Alex Grintsvayg 821cfb748e
refactor stopgroup to use context, which allows parent/child cancelations 2018-06-26 08:53:48 -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
Alex Grintsvayg f0762e9c57
fix typo in dependencies 2018-06-13 12:44:09 -04:00
Alex Grintsvayg de40df28c1
add Link to stop Stopper when an upstream Stopper is stopped 2018-06-13 12:37:21 -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
Niko Storni d062d4ad7f
add travis CI 2018-06-11 17:53:30 -04:00
Niko Storni e74070259e
update dependencies
fix issue preventing compilation
format project
2018-06-11 17:42:00 -04:00
Alex Grintsvayg 681a623ddf
update lockfile 2018-06-06 15:35:57 -04:00
Alex Grintsvayg 2162ea136a
Merge branch 'apiserver'
* apiserver:
  -Added API Server to lbry.go -Removed dependency on internal apis -Moved over only required packages. -Adjusted slack.go to be generic instead of hard coding channel name. -Moved over travis package from internal-apis -Added Repository struct for webhook and an IsMatch method. It is possible for any repository to send a webhook to the api and it will trigger a deploy. We should check against the owner, repo and branch. -Renamed package to api -removed util.Debugging from server.go -Added an ErrorHandling function that be used as interface for slack for internal-apis -Added Map for Header settings that can be set before the serving -Merged slack code from lbryio/boardbot -Cleaned up the slack.go code so it made more sense and flowed better -Removed gitignore entry for `.idea`, should be global -Removed debugging.go -Added option for private vs public repository for getting travis public key. -separated private vs public into if else. -Changed HeaderSettings to not be pointer. -Changed ErrorHandler to be named LogErrorFunc -removed logrus dependency, created loginfo function to handle non-error information. -Added Daemon Types and adjusted peer_list to be in line with v20 -Fixed rpcclient library usage for latest version to prevent build errors. -Changed inputs to LogError and LogInfo so that other implementations can make this customizable.
2018-06-05 15:15:03 -04:00
Mark Beamer Jr afffa668a9 -Added API Server to lbry.go
-Removed dependency on internal apis
-Moved over only required packages.
-Adjusted slack.go to be generic instead of hard coding channel name.
-Moved over travis package from internal-apis
-Added Repository struct for webhook and an IsMatch method. It is possible for any repository to send a webhook to the api and it will trigger a deploy. We should check against the owner, repo and branch.
-Renamed package to api
-removed util.Debugging from server.go
-Added an ErrorHandling function that be used as interface for slack for internal-apis
-Added Map for Header settings that can be set before the serving
-Merged slack code from lbryio/boardbot
-Cleaned up the slack.go code so it made more sense and flowed better
-Removed gitignore entry for `.idea`, should be global
-Removed debugging.go
-Added option for private vs public repository for getting travis public key.
-separated private vs public into if else.
-Changed HeaderSettings to not be pointer.
-Changed ErrorHandler to be named LogErrorFunc
-removed logrus dependency, created loginfo function to handle non-error information.
-Added Daemon Types and adjusted peer_list to be in line with v20
-Fixed rpcclient library usage for latest version to prevent build errors.
-Changed inputs to LogError and LogInfo so that other implementations can make this customizable.
2018-05-27 11:30:04 -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 2a6ea528bd
update stoponce 2018-05-24 12:59:34 -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