Skip to content

Tamjid/pfm homecoming #8285

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Tamjid/pfm homecoming #8285

wants to merge 4 commits into from

Conversation

DeshErBojhaa
Copy link
Contributor

Description

closes: #XXXX


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 the 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/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

First commit. Porting minimum necessary files for a non broken codebase. Gradual update on this branch eventually will port all code from ibc-app -> ibc-go.
Copy link

sonarqubecloud bot commented Apr 9, 2025

Quality Gate Failed Quality Gate failed for 'ibc-go'

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

Comment on lines +13 to +18
for key, value := range state.InFlightPackets {
key := key
value := value
bz := k.cdc.MustMarshal(&value)
store.Set([]byte(key), bz)
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
Comment on lines +282 to +303
for k := range m.InFlightPackets {
v := m.InFlightPackets[k]
baseI := i
{
size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
i -= len(k)
copy(dAtA[i:], k)
i = encodeVarintGenesis(dAtA, i, uint64(len(k)))
i--
dAtA[i] = 0xa
i = encodeVarintGenesis(dAtA, i, uint64(baseI-i))
i--
dAtA[i] = 0x12
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
Comment on lines +428 to +434
for k, v := range m.InFlightPackets {
_ = k
_ = v
l = v.Size()
mapEntrySize := 1 + len(k) + sovGenesis(uint64(len(k))) + 1 + l + sovGenesis(uint64(l))
n += mapEntrySize + 1 + sovGenesis(uint64(mapEntrySize))
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
@womensrights womensrights linked an issue Apr 13, 2025 that may be closed by this pull request
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.

[EPIC] Packet forward middleware
1 participant