mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 14:22:16 +00:00
* Renamed wire.go to codec.go - Wire was the previous name of amino - Codec describes the file better than `wire` & `amino` Signed-off-by: Marko Baricevic <marbar3778@yahoo.com> * ide error * rename amino.go to codec.go
28 lines
528 B
Go
28 lines
528 B
Go
package types
|
|
|
|
import (
|
|
amino "github.com/tendermint/go-amino"
|
|
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino"
|
|
)
|
|
|
|
var cdc = amino.NewCodec()
|
|
|
|
func init() {
|
|
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
|
|
}
|
|
|
|
// For testing purposes only
|
|
func RegisterMockEvidencesGlobal() {
|
|
RegisterMockEvidences(cdc)
|
|
}
|