Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steel-feel committed Jul 31, 2024
1 parent 4f44278 commit 6cf58d0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions x/xarchain/abci/vote_extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ import (
"golang.org/x/sync/errgroup"

abci "github.com/cometbft/cometbft/abci/types"
// "github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"

// "os"
"time"
"xarchain/x/xarchain/keeper"
// "xarchain/x/xarchain/types"

)

type VoteExtHandler struct {
Expand Down Expand Up @@ -130,8 +127,8 @@ func (h *VoteExtHandler) ExtendVoteHandler() sdk.ExtendVoteHandler {
}

if err := g.Wait(); err != nil {
// We failed to get some or all prices from providers. In the case that
// all prices fail, computeOraclePrices below will return an error.
// We failed to get some or all event from providers. In the case that
// all events fail, we will throw error.
h.logger.Error("failed to fetch events", "err", err)
}

Expand Down Expand Up @@ -164,7 +161,7 @@ func (h *VoteExtHandler) VerifyVoteExtensionHandler() sdk.VerifyVoteExtensionHan
return nil, fmt.Errorf("vote extension height does not match request height; expected: %d, got: %d", req.Height, voteExt.Height)
}

//Perform checks on events
//TODO: Perform checks on events

return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil
}
Expand Down

0 comments on commit 6cf58d0

Please sign in to comment.