mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
As per conversation here: https://github.com/tendermint/tendermint/pull/3218#discussion_r251364041 This is the result of running the following code on the repo: ```bash find . -name '*.go' | grep -v 'vendor/' | xargs -n 1 goimports -w ```
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)
|
|
}
|