Skip to content

Conversation

Eric-Warehime
Copy link
Contributor

Description

Draft for integrating block stm.

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

@@ -6,6 +6,8 @@
"fmt"
"io"
"os"
goruntime "runtime"
"sort"

Check notice

Code scanning / CodeQL

Sensitive package import Note

Certain system packages contain functions which may be a possible source of non-determinism
Comment on lines +297 to +300
allKeys = append(allKeys, k)
nonTransientKeys = append(nonTransientKeys, k)
}
for _, k := range tkeys {

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
Comment on lines +301 to +303
allKeys = append(allKeys, k)
}
for _, k := range okeys {

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
Comment on lines +304 to +307
allKeys = append(allKeys, k)
nonTransientKeys = append(nonTransientKeys, k)
}
sort.SliceStable(allKeys, func(i, j int) bool { return allKeys[i].Name() < allKeys[j].Name() })

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism

// Stack of cached store
cacheStores []storetypes.CacheKVStore
cacheStores []storetypes.CacheWrap
Copy link
Contributor

Choose a reason for hiding this comment

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

actually I felt a bit hacky like 04f5ae2 when doing cast for snapshotKVStore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants