Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Conversation

@KtorZ
Copy link
Contributor

@KtorZ KtorZ commented Nov 28, 2018

Description

The restore process does not correctly restore the balance for additional accounts. (The flaw is that the "quick restore" only restores the balance for the accounts that were created already, and in the overall restore workflow only the first account gets created before the quick restore is kicked off).

See #3896

Linked issue

DEVOPS-1153

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

How to merge

Send the message bors r+ to merge this PR. For more information, see
docs/how-to/bors.md.

@KtorZ KtorZ self-assigned this Nov 28, 2018
@KtorZ KtorZ requested a review from rvl November 28, 2018 13:06
erikd
erikd previously requested changes Nov 29, 2018
Copy link
Member

@erikd erikd left a comment

Choose a reason for hiding this comment

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

Need to fix double --.

@KtorZ KtorZ force-pushed the KtorZ/DEVOPS-1153/fix-old-data-layer-restoration-addWAddress branch from 1dbefd2 to f0df3a3 Compare November 29, 2018 07:18
adinapoli-iohk and others added 3 commits November 30, 2018 08:36
The previous incarnation of `addWAddress` had a bug: in case of new
accounts (like the ones we could find as part of a restoration) it
wouldn't add the relevant address to the DB, because the old code was
using a lens traversal with 'ix' which notoriously does nothing if the
key (in this case the account index) was not there.

This commit fixes it.
@KtorZ KtorZ force-pushed the KtorZ/DEVOPS-1153/fix-old-data-layer-restoration-addWAddress branch from f0df3a3 to 3a09150 Compare November 30, 2018 07:36
@deepfire deepfire merged commit cf9c5bd into release/2.0.0 Nov 30, 2018
@deepfire deepfire deleted the KtorZ/DEVOPS-1153/fix-old-data-layer-restoration-addWAddress branch November 30, 2018 14:00
@deepfire
Copy link
Contributor

Merged, because https://hydra.iohk.io/jobset/Cardano/cardano-sl-pr-3911 is green -- its the Github status machinery that failed us.

@KtorZ KtorZ mentioned this pull request Jan 4, 2019
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants