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

fix(core-forger): update configManager height #2487

Merged
merged 1 commit into from
Apr 26, 2019
Merged

fix(core-forger): update configManager height #2487

merged 1 commit into from
Apr 26, 2019

Conversation

spkjp
Copy link
Contributor

@spkjp spkjp commented Apr 26, 2019

Summary

We need to ensure the configManager is always on the same height as the block that is about to be forged. Otherwise the forger can run into trouble when milestones alter the transaction validation. Currently this is only guaranteed when forger and relay run in the same process.

What kind of change does this PR introduce?

  • Bugfix
  • New feature
  • Refactoring / Performance Improvements
  • Build-related changes
  • Documentation
  • Tests / Continuous Integration
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
    • All tests are passing
    • All benchmarks are passing without any major regressions
    • Sync from 0 works on mainnet
    • Sync from 0 works on devnet
    • Starting a new network and forging on it work
    • Explorer is fully functional
    • Wallets are fully functional
  • No

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)

@codecov-io
Copy link

Codecov Report

Merging #2487 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2487      +/-   ##
=========================================
+ Coverage   66.09%   66.1%   +<.01%     
=========================================
  Files         400     400              
  Lines        8610    8611       +1     
  Branches      394     435      +41     
=========================================
+ Hits         5691    5692       +1     
+ Misses       2875    2874       -1     
- Partials       44      45       +1
Impacted Files Coverage Δ
packages/core-forger/src/manager.ts 65.93% <100%> (+0.37%) ⬆️
packages/core-logger-winston/src/formatter.ts 42.85% <0%> (ø) ⬆️

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 c9da1f5...1ce5b4c. Read the comment docs.

@faustbrian faustbrian merged commit 6986636 into ArkEcosystem:master Apr 26, 2019
vasild added a commit that referenced this pull request Apr 26, 2019
…tion-expiration-in-height

* ArkEcosystem/core/develop:
  fix(core): parse only the last line of pm2 stdout (#2484)
  release: 2.3.18 (#2488)
  fix(core-snapshots): reset unfinished round after import (#2486)
  fix(core-forger): update configManager height (#2487)
  release: 2.3.16 (#2483)
  fix(core-database): initialize height on startup (#2482)
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.

3 participants