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

fix(cosmos): ensure simulated transactions can't trigger SwingSet #3740

Merged
merged 1 commit into from
Aug 21, 2021

Commits on Aug 21, 2021

  1. fix(cosmos): ensure simulated transactions can't trigger SwingSet

    The former pattern of `vm.IsSimulation` was too brittle to handle
    our migration to the GRPC-based transaction handlers.  Instead,
    intercept the actual invocation of CallToController and prevent
    it from running anything in SwingSet if in simulation mode.
    
    Also, make sure our InfiniteGasMeter is only assigned once, so
    that if we ever do Cosmos-level metering of SwingSet downcalls,
    there is only one place to adjust.
    michaelfig committed Aug 21, 2021
    Configuration menu
    Copy the full SHA
    997329a View commit details
    Browse the repository at this point in the history