github.com/okex/exchain@v1.8.0/libs/tendermint/types/block_ibc.go (about)

     1  package types
     2  
     3  import (
     4  	tmbytes "github.com/okex/exchain/libs/tendermint/libs/bytes"
     5  )
     6  
     7  func (sh SignedHeader) ValidateBasicForIBC(chainID string) error {
     8  	return sh.commonValidateBasic(chainID, true)
     9  }
    10  
    11  func (h *Header) PureIBCHash() tmbytes.HexBytes {
    12  	if h == nil || len(h.ValidatorsHash) == 0 {
    13  		return nil
    14  	}
    15  	return h.IBCHash()
    16  }
    17  
    18  func (commit *Commit) IBCVoteSignBytes(chainID string, valIdx int) []byte {
    19  	return commit.GetVote(valIdx).ibcSignBytes(chainID)
    20  }