github.com/evdatsion/aphelion-dpos-bft@v0.32.1/types/wire.go (about)

     1  package types
     2  
     3  import (
     4  	amino "github.com/evdatsion/go-amino"
     5  	cryptoAmino "github.com/evdatsion/aphelion-dpos-bft/crypto/encoding/amino"
     6  )
     7  
     8  var cdc = amino.NewCodec()
     9  
    10  func init() {
    11  	RegisterBlockAmino(cdc)
    12  }
    13  
    14  func RegisterBlockAmino(cdc *amino.Codec) {
    15  	cryptoAmino.RegisterAmino(cdc)
    16  	RegisterEvidences(cdc)
    17  }
    18  
    19  // GetCodec returns a codec used by the package. For testing purposes only.
    20  func GetCodec() *amino.Codec {
    21  	return cdc
    22  }
    23  
    24  // For testing purposes only
    25  func RegisterMockEvidencesGlobal() {
    26  	RegisterMockEvidences(cdc)
    27  }