Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow watch with Watcher node #860

Merged
merged 1 commit into from
Dec 3, 2018
Merged

Conversation

anarcher
Copy link
Contributor

@anarcher anarcher commented Dec 2, 2018

Github Issue

Background

Consensus Node <- Watcher  <- Watcher  ...

I think that it's not bad topology. With this topology, we can protect our consensus nodes. (maybe)

Solution

  • Watcher watches other watchers.

Possible Drawbacks

  • This layered make delayed watching from consensus nodes.. :->

@codecov-io
Copy link

codecov-io commented Dec 2, 2018

Codecov Report

Merging #860 into master will increase coverage by <.01%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #860      +/-   ##
==========================================
+ Coverage   60.76%   60.77%   +<.01%     
==========================================
  Files         153      153              
  Lines       10288    10289       +1     
==========================================
+ Hits         6252     6253       +1     
  Misses       3351     3351              
  Partials      685      685
Flag Coverage Δ
#integration_tests_long_term 44.25% <25%> (ø) ⬆️
#integration_tests_node 40.13% <25%> (ø) ⬆️
#unittests 50.24% <25%> (ø) ⬆️
Impacted Files Coverage Δ
lib/sync/watcher.go 0% <0%> (ø) ⬆️
lib/sync/config.go 79.22% <100%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ced26d...97660e2. Read the comment docs.

@@ -86,6 +86,7 @@ func (c *Config) NewFetcher() Fetcher {
c.localNode,
func(f *BlockFetcher) {
f.fetchTimeout = c.FetchTimeout
f.retryInterval = c.RetryInterval
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question. What is it for? :)

@anarcher anarcher merged commit 5bd611f into bosnet:master Dec 3, 2018
@anarcher anarcher deleted the watch-watcher branch December 3, 2018 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants