Skip to content
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

feat(vbank): new param allowed_monitoring_accounts #10488

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

michaelfig
Copy link
Member

@michaelfig michaelfig commented Nov 15, 2024

closes: #8564

Description

To make the Golang x/vbank more flexible, introduce an allowed_monitoring_accounts parameter. The default at agd genesis, or when an existing chain does a software-upgrade to this agd, will prevent balance monitoring except to the vbank/provision module account ("agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346", according to packages/internal/src/config.js). This provisioning account's balances need to be monitored for normal operation of packages/inter-protocol/src/provisionPoolKit.js.

This restriction will prevent the cause of #8564 (that the vast majority of balance monitoring updates were to the vbank/reserve module account, which did nothing with them), while making it possible to reënable balance updates when they can be reworked and deemed harmless.

Security Considerations

n/a

Scaling Considerations

Improves scalability if the chain is dealing with Cosmos x/bank sends (which are also triggered by IBC transfers) among many different accounts.

Documentation Considerations

n/a

Testing Considerations

The "*" wildcard-all short-circuit is not tested yet.

Upgrade Considerations

No JS changes, and preserving backward compatibility in the bridge messages, so this should be safe to upgrade.

@michaelfig michaelfig changed the title Mfig vbank monitoring config feat(vbank): new param allowed_monitoring_accounts Nov 15, 2024
@michaelfig michaelfig self-assigned this Nov 15, 2024
@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from e5a3f22 to 4809689 Compare November 15, 2024 01:01
Copy link

cloudflare-workers-and-pages bot commented Nov 15, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8bd1d0b
Status: ✅  Deploy successful!
Preview URL: https://4cf43738.agoric-sdk.pages.dev
Branch Preview URL: https://mfig-vbank-monitoring-config.agoric-sdk.pages.dev

View logs

@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from 4809689 to 70f8bb5 Compare November 15, 2024 16:23
@michaelfig michaelfig marked this pull request as ready for review November 15, 2024 16:23
@michaelfig michaelfig requested a review from a team as a code owner November 15, 2024 16:23
@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch 3 times, most recently from c04e5c6 to 814a45d Compare November 15, 2024 18:11
Copy link
Contributor

@JeancarloBarrios JeancarloBarrios left a comment

Choose a reason for hiding this comment

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

LGTM, I just left a question but other than that looks good.

@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from 814a45d to ef6e7e0 Compare November 18, 2024 17:22
@michaelfig michaelfig added the automerge:no-update (expert!) Automatically merge without updates label Nov 18, 2024
@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from ef6e7e0 to b31cb4f Compare November 19, 2024 00:10
@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from b31cb4f to 8bd1d0b Compare November 19, 2024 00:42
@michaelfig michaelfig force-pushed the mfig-vbank-monitoring-config branch from 8bd1d0b to 0e367d3 Compare November 19, 2024 00:43
@mergify mergify bot merged commit 23e127e into master Nov 19, 2024
80 of 81 checks passed
@mergify mergify bot deleted the mfig-vbank-monitoring-config branch November 19, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agoric-cosmos automerge:no-update (expert!) Automatically merge without updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

~300k vbank balance updates mostly wasted
2 participants