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.

25 lines
583 B

7 years ago
  1. package evidence
  2. import (
  3. "github.com/tendermint/go-amino"
  4. "github.com/tendermint/go-crypto"
  5. "github.com/tendermint/tendermint/types"
  6. )
  7. var cdc = amino.NewCodec()
  8. func init() {
  9. RegisterEvidenceMessages(cdc)
  10. crypto.RegisterAmino(cdc)
  11. types.RegisterEvidences(cdc)
  12. RegisterMockEvidences(cdc) // For testing
  13. }
  14. //-------------------------------------------
  15. func RegisterMockEvidences(cdc *amino.Codec) {
  16. cdc.RegisterConcrete(types.MockGoodEvidence{},
  17. "tendermint/MockGoodEvidence", nil)
  18. cdc.RegisterConcrete(types.MockBadEvidence{},
  19. "tendermint/MockBadEvidence", nil)
  20. }