Skip to content

fix(core-blofix(core-blockchain): do not reset noBlockCounter when downloadBlocks succeeds#2968

Merged
faustbrian merged 1 commit intodevelopfrom
fix/core-blockchain/state-machine
Sep 25, 2019
Merged

fix(core-blofix(core-blockchain): do not reset noBlockCounter when downloadBlocks succeeds#2968
faustbrian merged 1 commit intodevelopfrom
fix/core-blockchain/state-machine

Conversation

@spkjp
Copy link
Copy Markdown
Contributor

@spkjp spkjp commented Sep 24, 2019

Summary

Otherwise it is possible that the chain gets stuck, as it would never attempt to check for forks. Instead, reset inside setLastBlock.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

Otherwise it is possible that the chain gets stuck, as it would never
attempt to check for forks. Instead reset, when a block got accepted
and chained.
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 25, 2019

Codecov Report

Merging #2968 into develop will increase coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2968      +/-   ##
===========================================
+ Coverage    68.38%   68.41%   +0.02%     
===========================================
  Files          405      405              
  Lines         9826     9826              
  Branches       508      508              
===========================================
+ Hits          6720     6722       +2     
+ Misses        3066     3064       -2     
  Partials        40       40
Impacted Files Coverage Δ
packages/core-blockchain/src/state-machine.ts 89.74% <0%> (+1.5%) ⬆️
packages/core-state/src/stores/state.ts 90.27% <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 5fc1e40...8c721e4. Read the comment docs.

@faustbrian faustbrian changed the title fix(core-blockchain): do not reset noBlockCounter when downloadBlocks succeeds fix(core-blofix(core-blockchain): do not reset noBlockCounter when downloadBlocks succeeds Sep 25, 2019
@faustbrian faustbrian merged this pull request into develop Sep 25, 2019
@ghost ghost deleted the fix/core-blockchain/state-machine branch September 25, 2019 02:33
faustbrian pushed a commit that referenced this pull request Sep 25, 2019
…cks` succeeds (#2968)

Otherwise it is possible that the chain gets stuck, as it would never
attempt to check for forks. Instead reset, when a block got accepted
and chained.
vasild added a commit that referenced this pull request Sep 25, 2019
…l-range-selection

* ArkEcosystem/core/develop:
  fix(core-transactions): update wallet nonce when applying v1 transaction (#2959)
  fix(core-blockchain): do not reset `noBlockCounter` when `downloadBlocks` succeeds (#2968)
vasild added a commit that referenced this pull request Sep 27, 2019
…ts-nonce

* ArkEcosystem/core/develop:
  refactor(core-transaction-pool): don't accept expired v1 transactions (#2948)
  fix(core-snapshots): remove bogus skipRoundRows (#2973)
  feat(core-api): endpoints for locks/businesses/bridgechains (#2940)
  fix(core-blockchain): round deletion during rollback (#2970)
  fix: range selection in pool's getTransactions() (#2952)
  feat: expose `isValidPeer` via ajv format rule (#2960)
  chore: remove trailing whitespace (#2971)
  fix(core-transactions): update wallet nonce when applying v1 transaction (#2959)
  fix(core-blockchain): do not reset `noBlockCounter` when `downloadBlocks` succeeds (#2968)
  refactor(pool): remove unnecessary check from validateTransactions() (#2951)
  ci: temporarily disable pull_request.synchronize event (#2966)
  refactor: strengthen a nonce check in performGenericWalletChecks() (#2949)
  ci: setup github action workflow for e2e tests (#2964)
  chore: drop node 11 support (#2965)
  test(e2e): No need to run as root the chmod command when modifying own's files (#2958)
  refactor(crypto): change maximum recipients of multipayment via milestone (#2961)
  ci: split functional job into 1 job per type (#2963)
  refactor(core-p2p): make peer reply errors less verbose (#2962)
  fix(core-state): index recipient wallets during bootstrap (#2947)
  Tell git to ignore vim's temporary files (#2957)
  ci: force exit tests if there are hanging promises
  ci: use different test coverage directories for each type (#2956)
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.

2 participants