Skip to content

Only update TransactionController state if got updates#52

Merged
brunobar79 merged 3 commits intomasterfrom
fix-tx-state-update-on-polling
Jan 4, 2019
Merged

Only update TransactionController state if got updates#52
brunobar79 merged 3 commits intomasterfrom
fix-tx-state-update-on-polling

Conversation

@brunobar79
Copy link
Copy Markdown
Contributor

Because queryTransactionStatuses is running inside a setInterval we're telling GABA that the state was updated even when there are no changes.

This PR adds a flag to make sure the state gets updated only when at least 1 TX status changed.

@brunobar79 brunobar79 requested a review from bitpshr January 4, 2019 05:55
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 4, 2019

Codecov Report

Merging #52 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #52   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines        1011   1014    +3     
  Branches      112    113    +1     
=====================================
+ Hits         1011   1014    +3
Impacted Files Coverage Δ
src/TransactionController.ts 100% <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 f3a7af2...7b27df7. Read the comment docs.

@brunobar79 brunobar79 merged commit 8d49413 into master Jan 4, 2019
@whymarrh whymarrh deleted the fix-tx-state-update-on-polling branch November 5, 2019 17:43
mcmire pushed a commit to mcmire/core that referenced this pull request Jul 17, 2023
* Handle 'toJSON' in JSON validation and sizing

* Return parsed JSON value from validation function

* Rename return type

* Fix lint errors

* Add helper functions

* Slightly simplify code
mcmire pushed a commit to mcmire/core that referenced this pull request Jul 17, 2023
kanthesha pushed a commit that referenced this pull request Oct 11, 2023
* 100% test coverage everywhere
* add nyc config, check coverage, use in CI
* add next handler test case
* add async handle tests
* add sinon; use stub
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* only update state if got updates

* fix codecov

* tests
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* only update state if got updates

* fix codecov

* tests
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
This change deletes the unused CircleCI config
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
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