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-transactions): update wallet nonce when applying v1 transaction #2959

Merged
merged 6 commits into from
Sep 25, 2019

Conversation

spkjp
Copy link
Contributor

@spkjp spkjp commented Sep 23, 2019

Summary

Because of #2844 we also have to update the sender nonce whenever a V1 transaction is applied/reverted, otherwise they get out of sync which will cause issues once the V2 milestone kicks in.

Probably causes some merge conflicts for #2949.

Checklist

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

@codecov
Copy link

codecov bot commented Sep 25, 2019

Codecov Report

Merging #2959 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2959      +/-   ##
===========================================
+ Coverage    68.41%   68.41%   +<.01%     
===========================================
  Files          405      405              
  Lines         9826     9828       +2     
  Branches       508      508              
===========================================
+ Hits          6722     6724       +2     
  Misses        3064     3064              
  Partials        40       40
Impacted Files Coverage Δ
...ages/core-transactions/src/handlers/transaction.ts 69.35% <100%> (+1.02%) ⬆️
...kages/core-transactions/src/handlers/htlc-claim.ts 81.39% <100%> (ø) ⬆️

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 7aa4ecf...b08ceb9. Read the comment docs.

@spkjp spkjp force-pushed the fix/core-transactions/v1-nonce branch from 690d6bf to c127391 Compare September 25, 2019 04:03
Brian Faust added 2 commits September 25, 2019 07:10
@faustbrian faustbrian merged commit bcce772 into develop Sep 25, 2019
@ghost ghost deleted the fix/core-transactions/v1-nonce branch September 25, 2019 05:03
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