You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
528 B

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