mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 04:04:00 +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)
|
|
}
|