Skip to content

Commit

Permalink
Merge pull request #5489 from oasisprotocol/peternose/trivial/fix-lin…
Browse files Browse the repository at this point in the history
…t-eden

rhp: Fix lint errors
  • Loading branch information
kostko authored Nov 29, 2023
2 parents 6f9d3d2 + 91384d6 commit ea91d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Empty file added .changelog/5489.trivial.md
Empty file.
5 changes: 3 additions & 2 deletions go/runtime/registry/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (h *runtimeHostHandler) handleHostFetchConsensusBlock(
if err != nil {
return nil, err
}
edenChainContext := "bb3d748def55bdfb797a2ac53ee6ee141e54cd2ab2dc2375f4a0703a178e6e55"
edenChainContext := "bb3d748def55bdfb797a2ac53ee6ee141e54cd2ab2dc2375f4a0703a178e6e55" // #nosec G101
edenGenesisHeight := uint64(16817956)
if chainContext == edenChainContext && rq.Height == edenGenesisHeight {
var pb cmtproto.LightBlock
Expand Down Expand Up @@ -409,7 +409,8 @@ func (h *runtimeHostHandler) handleHostFetchConsensusBlock(
return nil, fmt.Errorf("cometbft light block signature %d already set", index)
}

sig, err := hex.DecodeString(encSig)
var sig []byte
sig, err = hex.DecodeString(encSig)
if err != nil {
return nil, fmt.Errorf("failed to decode cometbft light block signature: %w", err)
}
Expand Down

0 comments on commit ea91d4a

Please sign in to comment.