-
Notifications
You must be signed in to change notification settings - Fork 208
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
smartWallet stops updating purse balance on upgrade #8293
Comments
For a fix for this issue, what branch should it be based on? @warner ? |
I added a checklist / plan to the description:
I worked with @0xpatrickdev to capture the bug in a test on 21 Nov. MFig and I diagnosed it around Nov 27. I added a fix around Nov 27 and requested review. MH's review showed that the fix for when zoe is upgraded is not independent of work to address problems when walletFactory is upgraded (#8488). Meanwhile, I asked for clarity about whether this work should target master or the release branch (#8565); then answer is: both. So even though review of #8488 isn't done, I suppose I should start working on that branch. Then after #8488 lands, we can land #8557 . And then we can land the version on the release branch (#8573) ... by way of the dev-upgrade-wallet-factory-2 branch started in #8593. |
@Chris-Hibbert has kindly agreed to help with this. |
@Chris-Hibbert is this fixed with #8773 & #8775 ? Edit: nvm I see it's waiting for the #8787 tests |
Moving to done as @Chris-Hibbert mentioned this was in the release branch and sufficiently tested. |
Describe the bug
The wallet gets a balance-updates notifier from the Purses it manages, and it correctly uses
observeNotifier
to follow them. Zoe hosts Issuers for IST and for invitations. The ERTP Issuer code usestransientNotifier.js
to produce the balance-update notifiers. So when v9-zoe is upgraded, v43-walletFactory will see the rejected/disconnected upgrade promise, correctly go back to the notifier to get a new promise, but that notifier will be dead, andobserveNotifier
has no further fallbacks it can make, so the wallet will stop updating chain-storage with user balances of IST (and maybe contract invitations that it already knows about). We think either the wallet needs to react to this by asking the Purse for a new (still-merely-virtual) notifier (effectively a third-level fallback), or ERTP needs to be changed to offer durable notifiers instead of merely-virtual ones (and Zoe needs to use them, if we don't make that mode the default).This affects any non-vbank issuer/purse.
To Reproduce
Expected behavior
notifications happen after zoe is upgraded
Design / Plan
Platform Environment
mainnet1B
Additional context
from the #8245 investigation with @warner:
The text was updated successfully, but these errors were encountered: