Skip to content

Use global wasm VM instead of keeping an additional reference in keeper.#5146

Merged
DimitrisJim merged 1 commit intomainfrom
jim/use-global-vm
Nov 21, 2023
Merged

Use global wasm VM instead of keeping an additional reference in keeper.#5146
DimitrisJim merged 1 commit intomainfrom
jim/use-global-vm

Conversation

@DimitrisJim
Copy link
Copy Markdown
Contributor

Description

this isn't strictly necessary, it just keeps all accesses to the VM from a single place.

closes: #XXXX

Commit Message / Changelog Entry

chore: use global vm in keeper methods.

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

Copy link
Copy Markdown
Contributor

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Love the cleanup! Good stuff 🙌

Copy link
Copy Markdown
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM

@DimitrisJim DimitrisJim merged commit 595e1a9 into main Nov 21, 2023
@DimitrisJim DimitrisJim deleted the jim/use-global-vm branch November 21, 2023 13:59
mergify bot pushed a commit that referenced this pull request Nov 29, 2023
…er. (#5146)

(cherry picked from commit 595e1a9)

# Conflicts:
#	modules/light-clients/08-wasm/keeper/genesis.go
#	modules/light-clients/08-wasm/keeper/keeper.go
#	modules/light-clients/08-wasm/keeper/snapshotter.go
mergify bot pushed a commit that referenced this pull request Nov 29, 2023
…er. (#5146)

(cherry picked from commit 595e1a9)

# Conflicts:
#	modules/light-clients/08-wasm/keeper/genesis.go
#	modules/light-clients/08-wasm/keeper/keeper.go
#	modules/light-clients/08-wasm/keeper/snapshotter.go
crodriguezvega pushed a commit that referenced this pull request Nov 29, 2023
…er. (backport #5146) (#5248)

* Use global wasm VM instead of keeping an additional reference in keeper. (#5146)

(cherry picked from commit 595e1a9)

# Conflicts:
#	modules/light-clients/08-wasm/keeper/genesis.go
#	modules/light-clients/08-wasm/keeper/keeper.go
#	modules/light-clients/08-wasm/keeper/snapshotter.go

* Fix conflicts.

* linter stuff as per usual.

* fix: use StoreCodeUnchecked in snapshot restore func

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
crodriguezvega added a commit that referenced this pull request Nov 29, 2023
…er. (backport #5146) (#5253)

* Use global wasm VM instead of keeping an additional reference in keeper. (#5146)

(cherry picked from commit 595e1a9)

# Conflicts:
#	modules/light-clients/08-wasm/keeper/genesis.go
#	modules/light-clients/08-wasm/keeper/keeper.go
#	modules/light-clients/08-wasm/keeper/snapshotter.go

* fix conflicts

---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08-wasm gRPC Issues for gRPC endpoints

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants