Skip to content

Commit

Permalink
WASM snapshotter: weite directly to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Oct 31, 2022
1 parent 7c9c966 commit cc40d44
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 88 deletions.
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io"
"net/http"
"os"
"path"
"path/filepath"

"github.com/scrtlabs/SecretNetwork/app/keepers"
Expand Down Expand Up @@ -379,7 +380,7 @@ func NewSecretNetworkApp(

if manager := app.BaseApp.SnapshotManager(); manager != nil {
err := manager.RegisterExtensions(
compute.NewWasmSnapshotter(app.BaseApp.CommitMultiStore(), app.AppKeepers.ComputeKeeper),
compute.NewWasmSnapshotter(app.BaseApp.CommitMultiStore(), app.AppKeepers.ComputeKeeper, path.Join(homePath, ".compute", "wasm", "wasm")),
)
if err != nil {
panic(fmt.Errorf("failed to register snapshot extension: %s", err))
Expand Down
Loading

0 comments on commit cc40d44

Please sign in to comment.