github.com/vipernet-xyz/tendermint-core@v0.32.0/evidence/codec.go (about)

     1  package evidence
     2  
     3  import (
     4  	amino "github.com/tendermint/go-amino"
     5  
     6  	cryptoamino "github.com/tendermint/tendermint/crypto/encoding/amino"
     7  	"github.com/tendermint/tendermint/types"
     8  )
     9  
    10  var cdc = amino.NewCodec()
    11  
    12  func init() {
    13  	RegisterMessages(cdc)
    14  	cryptoamino.RegisterAmino(cdc)
    15  	types.RegisterEvidences(cdc)
    16  }
    17  
    18  // For testing purposes only
    19  func RegisterMockEvidences() {
    20  	types.RegisterMockEvidences(cdc)
    21  }