mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 06:01:21 +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>
21 lines
410 B
Go
21 lines
410 B
Go
package evidence
|
|
|
|
import (
|
|
"github.com/tendermint/go-amino"
|
|
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino"
|
|
"github.com/tendermint/tendermint/types"
|
|
)
|
|
|
|
var cdc = amino.NewCodec()
|
|
|
|
func init() {
|
|
RegisterEvidenceMessages(cdc)
|
|
cryptoAmino.RegisterAmino(cdc)
|
|
types.RegisterEvidences(cdc)
|
|
}
|
|
|
|
// For testing purposes only
|
|
func RegisterMockEvidences() {
|
|
types.RegisterMockEvidences(cdc)
|
|
}
|