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

refactor(core-p2p): Improve fork handling in updatePeersOnMissingBlocks #2125

Merged
merged 21 commits into from
Feb 21, 2019

Conversation

vasild
Copy link
Contributor

@vasild vasild commented Feb 20, 2019

Proposed changes

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improve a current implementation without adding a new feature or fixing a bug)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Build (changes that affect the build system)
  • Docs (documentation only changes)
  • Test (adding missing tests or fixing existing tests)
  • Other... Please describe:

Checklist

  • I have read the CONTRIBUTING documentation
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vasild vasild requested a review from spkjp February 20, 2019 18:25
@ghost
Copy link

ghost commented Feb 20, 2019

@air1one @faustbrian @supaiku0 - please review this in the next few days. Be sure to explicitly select labels so I know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost requested review from air1one and faustbrian February 20, 2019 18:25
@ghost
Copy link

ghost commented Feb 20, 2019

@vasild The ci/circleci: test-node11-0 job is failing as of c835830bb08778362d84e870accd907699206893. Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@codecov-io
Copy link

codecov-io commented Feb 21, 2019

Codecov Report

Merging #2125 into develop will increase coverage by 0.24%.
The diff coverage is 46.51%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2125      +/-   ##
===========================================
+ Coverage    79.28%   79.53%   +0.24%     
===========================================
  Files          329      329              
  Lines         7898     7885      -13     
  Branches      1089     1116      +27     
===========================================
+ Hits          6262     6271       +9     
+ Misses        1604     1583      -21     
+ Partials        32       31       -1
Impacted Files Coverage Δ
packages/core-p2p/src/monitor.ts 55.67% <0%> (+3.45%) ⬆️
packages/core-blockchain/src/state-machine.ts 100% <100%> (ø) ⬆️
packages/core-blockchain/src/state-storage.ts 100% <100%> (ø) ⬆️
packages/core-p2p/src/peer-verifier.ts 88.81% <100%> (+2.02%) ⬆️
packages/core-p2p/src/peer.ts 84.48% <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 82d1dd4...968f077. Read the comment docs.

packages/core-interfaces/src/core-p2p/monitor.ts Outdated Show resolved Hide resolved
packages/core-p2p/__tests__/peer-verifier.test.ts Outdated Show resolved Hide resolved
packages/core-p2p/__tests__/peer-verifier.test.ts Outdated Show resolved Hide resolved
packages/core-p2p/__tests__/peer-verifier.test.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/monitor.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/monitor.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/monitor.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/monitor.ts Show resolved Hide resolved
packages/core-p2p/src/monitor.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/peer-verifier.ts Show resolved Hide resolved
packages/core-p2p/src/peer.ts Outdated Show resolved Hide resolved
packages/core-p2p/src/peer.ts Outdated Show resolved Hide resolved
packages/core/bin/config/devnet/.env Outdated Show resolved Hide resolved
@vasild vasild marked this pull request as ready for review February 21, 2019 17:31
@vasild vasild requested a review from kristjank as a code owner February 21, 2019 17:31
@faustbrian faustbrian merged commit ef55a62 into develop Feb 21, 2019
@ghost ghost deleted the refactor-updatePeersOnMissingBlocks branch February 21, 2019 18:06
@ghost ghost removed the Status: Needs Review label Feb 21, 2019
vasild added a commit that referenced this pull request Feb 27, 2019
* ArkEcosystem/core/2.3:
  chore: move core-graphql to the deprecated folder (#2169)
  refactor(crypto): benchmarks (#2167)
  refactor: replace micromatch with nanomatch and remove heavy deps (#2165)
  feat(crypto): increase vendor field length to 255 bytes (#2159)
  feat(core-api): search delegates by usernames (#2143)
  feat(core-logger-pino): initial implementation (#2134)
  perf(crypto): integrate bcrypto (#2158)
  feat(core): ask for process restarts after updating (#2155)
  refactor(core): replace pm2 with process manager (#2154)
  refactor(core): require the user to take action for updates (#2153)
  feat(core-p2p): Fetch list of peers from at least a few others (#2152)
  refactor(core): more robust check for ensureDefaults (#2151)
  fix(core): ensure file and defaults before reading
  fix(core): return correct suffix for core:restart command (#2150)
  fix(core-database): properly sort BigNumber values (#2144)
  feat(core): configuration and channel support for the CLI (#2145)
  feat(core): merge core-snapshot-cli commands into core (#2149)
  fix(core-api): pass query to findAllByVote method (#2142)
  feat(core-p2p): Validate GET replies from other peers (#2102)
  chore(release): 2.2.0-beta.7 (#2141)
  fix(core-blockchain): stuck at not ready to accept new block (#2139)
  refactor(core-p2p): Improve selection of peer for downloading blocks (#2137)
  fix(core): overwrite the config path if an env variable is provided (#2140)
  fix(core): do not ignore the network flag in parseWithNetwork (#2138)
  chore(release): 2.2.0-beta.6 (#2136)
  refactor(core-container): throw an error if the peers or plugins file are missing (#2135)
  chore(release): 2.2.0-beta.5 (#2132)
  refactor(core-p2p):  reduce logging noise (#2129)
  misc(core-p2p): remove superfluous log message (#2128)
  refactor(core-p2p): Improve fork handling in updatePeersOnMissingBlocks (#2125)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants