-
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
fix: watch ERTP purse balances across zoe upgrades #8573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me. One question.
f756c9e
to
43355f6
Compare
a251233
to
2fd24cd
Compare
19bfad6
to
cd1c09a
Compare
37b4e84
to
5ed5107
Compare
cc1dce2
to
401e87a
Compare
On a re-read, I realized that this only addresses newly created smartWallets, and existing ones do not get repaired. Consider hooking into repairWalletForIncarnation2 to get access to existing smartWallets to repair them. I'm going to retract my approval, pending a fix. |
ded6f35
to
76e9d45
Compare
observeNotifier() would handle upgrade disconnects if the notifiers were durable. But in @agoric/ertp, they're ephemeral, so we open-code the loop. When the offerWatchers detect an upgrade, they reschedule the watchers. We needed to ensure the wallet itself doesn't do its cleanup in that case. The test updates purse balance across upgrade - provision a smartWallet for an oracle operator - upgrade zoe; reproduce smartWallet bug - check for new invitation
76e9d45
to
20e1a9a
Compare
DRAFT until:
refs: #8557
provided that lands,
fixes: #8293
Description
This is a port of #8557 from the release branch to master:
So we work around that.
Security / Scaling / Documentation / Testing / Upgrade Considerations
See #8557