Skip to content

Commit

Permalink
docs: fix incorrectly placed comments (ethereum-optimism#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs authored Jun 23, 2024
1 parent 07c6518 commit c675382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clientcontroller/babylon/babylon.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ func (bc *BabylonController) RegisterFinalityProvider(
return &types.TxResponse{TxHash: res.TxHash}, nil
}

// TODO: only used in test. this should not be put here. it causes confusion that this is a method
// that will be used when FP runs. in that's the case, it implies it should work all all consumer
// types. but `bbnClient.QueryClient.FinalityProviders` doesn't work for consumer chains
func (bc *BabylonController) QueryFinalityProviderSlashed(fpPk *btcec.PublicKey) (bool, error) {
fpPubKey := bbntypes.NewBIP340PubKeyFromBTCPK(fpPk)
res, err := bc.bbnClient.QueryClient.FinalityProvider(fpPubKey.MarshalHex())
Expand Down Expand Up @@ -285,6 +282,9 @@ func (bc *BabylonController) InsertBtcBlockHeaders(headers []bbntypes.BTCHeaderB
return res, nil
}

// TODO: only used in test. this should not be put here. it causes confusion that this is a method
// that will be used when FP runs. in that's the case, it implies it should work all all consumer
// types. but `bbnClient.QueryClient.FinalityProviders` doesn't work for consumer chains
func (bc *BabylonController) QueryFinalityProviders() ([]*btcstakingtypes.FinalityProviderResponse, error) {
var fps []*btcstakingtypes.FinalityProviderResponse
pagination := &sdkquery.PageRequest{
Expand Down

0 comments on commit c675382

Please sign in to comment.