mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 19:53:58 +00:00
* abci: PrepareProposal-VoteExtension integration [2nd try] (#7821) * PrepareProposal-VoteExtension integration (#6915) * make proto-gen * Fix protobuf crash in e2e nightly tests * Update types/vote.go Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * Addressed @creachadair's comments Co-authored-by: mconcat <monoidconcat@gmail.com> Co-authored-by: M. J. Fromberger <fromberger@interchain.io> * Proto changes * make proto-gen * Fixed UTs * bump * lint * lint2 * lint3 * lint4 * lint5 * lint6 * no_lint Co-authored-by: mconcat <monoidconcat@gmail.com> Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
43 lines
850 B
Go
43 lines
850 B
Go
/*
|
|
Package Behavior provides a mechanism for reactors to report behavior of peers.
|
|
|
|
Instead of a reactor calling the switch directly it will call the behavior module which will
|
|
handle the stoping and marking peer as good on behalf of the reactor.
|
|
|
|
There are four different behaviors a reactor can report.
|
|
|
|
1. bad message
|
|
|
|
type badMessage struct {
|
|
explanation string
|
|
}
|
|
|
|
This message will request the peer be stopped for an error
|
|
|
|
2. message out of order
|
|
|
|
type messageOutOfOrder struct {
|
|
explanation string
|
|
}
|
|
|
|
This message will request the peer be stopped for an error
|
|
|
|
3. consesnsus Vote
|
|
|
|
type consensusVote struct {
|
|
explanation string
|
|
}
|
|
|
|
This message will request the peer be marked as good
|
|
|
|
4. block part
|
|
|
|
type blockPart struct {
|
|
explanation string
|
|
}
|
|
|
|
This message will request the peer be marked as good
|
|
|
|
*/
|
|
package behaviour //nolint:misspell
|