-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
State sync fixes: Remove Bad Witnesses and Don't Wait on All Witnesse…
…s for ConsensusParams (#156) * Remove unresponsive witnesses + consensusParams return on first resp * Add Witness blacklist * Default TTL * add comment * Fix indentation * Add jitter to retry * Update tests * blacklistTTL configurable * Update tests with blacklist TTL * Update test * Update blacklist tests * gofmt * Update mapstructure * Remove unused struct * Update light/client.go Co-authored-by: Steven Landers <steven.landers@gmail.com> * Add a cancel when lb is received * Child Context to cancel inner witness goroutines * Update comments * defer childCancel * childCancel * remove def * Remove witness when removing provider for p2p-down (#159) * remove witness when removing provider for p2p-down * add tests * Add comments + split up blacklist function * fmt * Only blacklist in detect divergence --------- Co-authored-by: Kartik Bhat <kartikbhat@kartiks-mbp-2.mynetworksettings.com> Co-authored-by: Steven Landers <steven.landers@gmail.com>
- Loading branch information
1 parent
b3eec97
commit 51802ea
Showing
15 changed files
with
338 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.