mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 23:02:16 +00:00
* consensus: createProposalBlock function * blockExecutor.CreateProposalBlock - factored out of consensus pkg into a method on blockExec - new private interfaces for mempool ("txNotifier") and evpool with one function each - consensus tests still require more mempool methods * failing test for CreateProposalBlock * Fix bug in include evidece into block * evidence: change maxBytes to maxSize * MaxEvidencePerBlock - changed to return both the max number and the max bytes - preparation for #2590 * changelog * fix linter * Fix from review Co-Authored-By: ebuchman <ethan@coinculture.info>
28 lines
516 B
Go
28 lines
516 B
Go
package types
|
|
|
|
import (
|
|
amino "github.com/tendermint/go-amino"
|
|
"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)
|
|
}
|