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

Chore: upstream v0.47.6 #10

Merged
merged 50 commits into from
Nov 19, 2023
Merged

Chore: upstream v0.47.6 #10

merged 50 commits into from
Nov 19, 2023

Conversation

pr0n00gler
Copy link
Collaborator

No description provided.

fmorency and others added 30 commits September 1, 2023 21:46
…s#17632)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <[email protected]>
…#17668) (cosmos#17675)

Co-authored-by: Bala Murali Krishna Komatireddy <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
@pr0n00gler pr0n00gler merged commit 050d219 into neutron Nov 19, 2023
18 of 22 checks passed
@@ -501,7 +501,7 @@
func GetSnapshotStore(appOpts types.AppOptions) (*snapshots.Store, error) {
homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
snapshotDir := filepath.Join(homeDir, "data", "snapshots")
if err := os.MkdirAll(snapshotDir, os.ModePerm); err != nil {
if err := os.MkdirAll(snapshotDir, 0o744); err != nil {

Check failure

Code scanning / Golang security checks by gosec

Expect directory permissions to be 0750 or less Error

Expect directory permissions to be 0750 or less
@@ -223,7 +223,9 @@
// Implements types.KVStore.
func (st *Store) Delete(key []byte) {
defer telemetry.MeasureSince(time.Now(), "store", "iavl", "delete")
st.tree.Remove(key)
if _, _, err := st.tree.Remove(key); err != nil {
panic(err)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@@ -144,6 +144,8 @@
// onWrite writes a KVStore operation to all of the WriteListeners
func (s *Store) onWrite(delete bool, key, value []byte) {
for _, l := range s.listeners {
l.OnWrite(s.parentStoreKey, key, value, delete)
if err := l.OnWrite(s.parentStoreKey, key, value, delete); err != nil {
panic(err)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@@ -195,5 +195,7 @@
panic(errors.Wrap(err, "failed to write trace operation"))
}

io.WriteString(w, "\n")
if _, err = io.WriteString(w, "\n"); err != nil {
panic(errors.Wrap(err, "failed to write newline"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@@ -42,6 +44,10 @@
}

func (msg MsgUpdateParams) ToProtoConsensusParams() tmproto.ConsensusParams {
if msg.Evidence == nil || msg.Block == nil || msg.Validator == nil {
panic(errors.New("all parameters must be present"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants