chore: migrate sdk.Msg to transaction.type (#20273)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
This commit is contained in:
Marko
2024-05-10 10:23:22 +00:00
committed by GitHub
co-authored by coderabbitai[bot] Hieu Vu
parent 98471350e4
commit 62b0b26d0c
55 changed files with 358 additions and 488 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"io"
"math" // nolint:typecheck // this is used, false positive
"math"
"sort"
"strings"
"sync"
@@ -830,7 +830,7 @@ func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error {
keys := keysFromStoreKeyMap(rs.stores)
for _, key := range keys {
switch store := rs.GetCommitKVStore(key).(type) {
case *iavl.Store: // nolint:typecheck // ignore linting issues in v1
case *iavl.Store:
stores = append(stores, namedStore{name: key.Name(), Store: store})
case *transient.Store, *mem.Store:
// Non-persisted stores shouldn't be snapshotted
@@ -850,7 +850,7 @@ func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error {
// are demarcated by new SnapshotStore items.
for _, store := range stores {
rs.logger.Debug("starting snapshot", "store", store.name, "height", height)
exporter, err := store.Export(int64(height)) // nolint:typecheck // ignore linting issues in v1
exporter, err := store.Export(int64(height))
if err != nil {
rs.logger.Error("snapshot failed; exporter error", "store", store.name, "err", err)
return err