Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Improve resync manager to better track unfunded addresses #1660

Merged
merged 7 commits into from
Aug 9, 2019
Merged

Conversation

cpacia
Copy link
Member

@cpacia cpacia commented Jul 23, 2019

Refactors the resync manager so that it:

  • loads all unfunded sales and purchases from the db
  • adds each payment address as a watch address so as to ensure we are watching
  • triggers the multiwallet to rescan for all unfunded order addresses

This also adds a migration to drop the needsSync column from the sales table as it's no longer used.

Remove the marking of an unfunded order as needsResync=false if a single resync
has been performed. Since we use API wallets now the resync can be done much
more frequently.
@coveralls
Copy link

coveralls commented Jul 23, 2019

Coverage Status

Coverage increased (+0.08%) to 38.187% when pulling afdde10 on resync into 5c18158 on master.

@cpacia cpacia requested a review from placer14 July 29, 2019 15:40
@drwasho drwasho added the 🔍 readyForReview Issue or PR ready for code review prior to closing. label Jul 30, 2019
Copy link
Member

@placer14 placer14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. A few oversights to fix. I would also like to have errors and logs lead with the lower case char as well.

@drwasho drwasho added 🚧 in progress Issue or PR is currently being worked on and not in final form. and removed 🔍 readyForReview Issue or PR ready for code review prior to closing. needs confirmation labels Aug 1, 2019
@cpacia cpacia added 🔍 readyForReview Issue or PR ready for code review prior to closing. and removed 🚧 in progress Issue or PR is currently being worked on and not in final form. labels Aug 5, 2019
Copy link
Member

@placer14 placer14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining fixes are in. This looks GTM. Thanks.

@placer14 placer14 merged commit 8a436d4 into master Aug 9, 2019
@placer14 placer14 deleted the resync branch August 9, 2019 16:54
@placer14 placer14 changed the title Patch resync manager Improve resync manager to better track unfunded addresses Aug 20, 2019
@placer14 placer14 removed the 🔍 readyForReview Issue or PR ready for code review prior to closing. label Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants