tendermint/types/wire.go

23 lines
419 B
Go
Raw Normal View History

package types
import (
amino "github.com/tendermint/go-amino"
2018-07-26 15:41:15 -07:00
"github.com/tendermint/tendermint/crypto/encoding/amino"
)
var cdc = amino.NewCodec()
func init() {
2018-07-26 18:08:09 -07:00
RegisterBlockAmino(cdc)
}
func RegisterBlockAmino(cdc *amino.Codec) {
cryptoAmino.RegisterAmino(cdc)
RegisterEvidences(cdc)
}
// GetCodec returns a codec used by the package. For testing purposes only.
func GetCodec() *amino.Codec {
return cdc
}