mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 20:15:18 +00:00
23 lines
628 B
Go
23 lines
628 B
Go
|
package v032
|
||
|
|
||
|
import (
|
||
|
"github.com/cosmos/cosmos-sdk/codec"
|
||
|
//amino "github.com/tendermint/go-amino"
|
||
|
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino"
|
||
|
|
||
|
"github.com/tendermint/tendermint/types"
|
||
|
)
|
||
|
|
||
|
// Replace amino codec with sdk codec to avoid an explicit amino import in go.mod.
|
||
|
// This will use a different version of amino from tendermint v0.32, but they are backwards compatible.
|
||
|
var Cdc = codec.New()
|
||
|
|
||
|
func init() {
|
||
|
RegisterBlockAmino(Cdc)
|
||
|
}
|
||
|
|
||
|
func RegisterBlockAmino(cdc *codec.Codec) {
|
||
|
cryptoAmino.RegisterAmino(cdc)
|
||
|
types.RegisterEvidences(cdc) // v0.33 is backwards compatible with v0.32 here
|
||
|
}
|