mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-20 08:26:31 +00:00
some minor changes
This commit is contained in:
@ -14,7 +14,6 @@ FEATURES:
|
|||||||
- Tooling to run multiple blockchains/apps, possibly in a single process
|
- Tooling to run multiple blockchains/apps, possibly in a single process
|
||||||
- State syncing (without transaction replay)
|
- State syncing (without transaction replay)
|
||||||
- Add authentication and rate-limitting to the RPC
|
- Add authentication and rate-limitting to the RPC
|
||||||
- new unsubscribe_all WebSocket RPC endpoint
|
|
||||||
|
|
||||||
IMPROVEMENTS:
|
IMPROVEMENTS:
|
||||||
- Improve subtleties around mempool caching and logic
|
- Improve subtleties around mempool caching and logic
|
||||||
|
@ -57,7 +57,7 @@ func (conR *ConsensusReactor) OnStart() error {
|
|||||||
conR.Logger.Info("ConsensusReactor ", "fastSync", conR.FastSync())
|
conR.Logger.Info("ConsensusReactor ", "fastSync", conR.FastSync())
|
||||||
conR.BaseReactor.OnStart()
|
conR.BaseReactor.OnStart()
|
||||||
|
|
||||||
err := conR.broadcastRoutine()
|
err := conR.startBroadcastRoutine()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -325,10 +325,10 @@ func (conR *ConsensusReactor) FastSync() bool {
|
|||||||
|
|
||||||
//--------------------------------------
|
//--------------------------------------
|
||||||
|
|
||||||
// broadcastRoutine subscribes for new round steps, votes and proposal
|
// startBroadcastRoutine subscribes for new round steps, votes and proposal
|
||||||
// heartbeats using the event bus and broadcasts events to peers upon receiving
|
// heartbeats using the event bus and starts a go routine to broadcasts events
|
||||||
// them.
|
// to peers upon receiving them.
|
||||||
func (conR *ConsensusReactor) broadcastRoutine() error {
|
func (conR *ConsensusReactor) startBroadcastRoutine() error {
|
||||||
const subscriber = "consensus-reactor"
|
const subscriber = "consensus-reactor"
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package types
|
|||||||
// Interface assertions
|
// Interface assertions
|
||||||
var _ TxEventPublisher = (*TxEventBuffer)(nil)
|
var _ TxEventPublisher = (*TxEventBuffer)(nil)
|
||||||
|
|
||||||
// TxEventBuffer is a buffer of events, which uses a slice to temporary store
|
// TxEventBuffer is a buffer of events, which uses a slice to temporarily store
|
||||||
// events.
|
// events.
|
||||||
type TxEventBuffer struct {
|
type TxEventBuffer struct {
|
||||||
next TxEventPublisher
|
next TxEventPublisher
|
||||||
@ -11,7 +11,7 @@ type TxEventBuffer struct {
|
|||||||
events []EventDataTx
|
events []EventDataTx
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTxEventBuffer accepts an EventBus and returns a new buffer with the given
|
// NewTxEventBuffer accepts a TxEventPublisher and returns a new buffer with the given
|
||||||
// capacity.
|
// capacity.
|
||||||
func NewTxEventBuffer(next TxEventPublisher, capacity int) *TxEventBuffer {
|
func NewTxEventBuffer(next TxEventPublisher, capacity int) *TxEventBuffer {
|
||||||
return &TxEventBuffer{
|
return &TxEventBuffer{
|
||||||
|
@ -42,7 +42,7 @@ var (
|
|||||||
EventDataNameTx = "tx"
|
EventDataNameTx = "tx"
|
||||||
EventDataNameRoundState = "round_state"
|
EventDataNameRoundState = "round_state"
|
||||||
EventDataNameVote = "vote"
|
EventDataNameVote = "vote"
|
||||||
EventDataNameProposalHeartbeat = "proposer_heartbeat"
|
EventDataNameProposalHeartbeat = "proposal_heartbeat"
|
||||||
)
|
)
|
||||||
|
|
||||||
// implements events.EventData
|
// implements events.EventData
|
||||||
|
Reference in New Issue
Block a user