Browse Source

some minor changes

pull/788/head
Ethan Buchman 7 years ago
parent
commit
d71aed309f
4 changed files with 8 additions and 9 deletions
  1. +0
    -1
      CHANGELOG.md
  2. +5
    -5
      consensus/reactor.go
  3. +2
    -2
      types/event_buffer.go
  4. +1
    -1
      types/events.go

+ 0
- 1
CHANGELOG.md View File

@ -14,7 +14,6 @@ FEATURES:
- Tooling to run multiple blockchains/apps, possibly in a single process
- State syncing (without transaction replay)
- Add authentication and rate-limitting to the RPC
- new unsubscribe_all WebSocket RPC endpoint
IMPROVEMENTS:
- Improve subtleties around mempool caching and logic


+ 5
- 5
consensus/reactor.go View File

@ -57,7 +57,7 @@ func (conR *ConsensusReactor) OnStart() error {
conR.Logger.Info("ConsensusReactor ", "fastSync", conR.FastSync())
conR.BaseReactor.OnStart()
err := conR.broadcastRoutine()
err := conR.startBroadcastRoutine()
if err != nil {
return err
}
@ -325,10 +325,10 @@ func (conR *ConsensusReactor) FastSync() bool {
//--------------------------------------
// broadcastRoutine subscribes for new round steps, votes and proposal
// heartbeats using the event bus and broadcasts events to peers upon receiving
// them.
func (conR *ConsensusReactor) broadcastRoutine() error {
// startBroadcastRoutine subscribes for new round steps, votes and proposal
// heartbeats using the event bus and starts a go routine to broadcasts events
// to peers upon receiving them.
func (conR *ConsensusReactor) startBroadcastRoutine() error {
const subscriber = "consensus-reactor"
ctx := context.Background()


+ 2
- 2
types/event_buffer.go View File

@ -3,7 +3,7 @@ package types
// Interface assertions
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.
type TxEventBuffer struct {
next TxEventPublisher
@ -11,7 +11,7 @@ type TxEventBuffer struct {
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.
func NewTxEventBuffer(next TxEventPublisher, capacity int) *TxEventBuffer {
return &TxEventBuffer{


+ 1
- 1
types/events.go View File

@ -42,7 +42,7 @@ var (
EventDataNameTx = "tx"
EventDataNameRoundState = "round_state"
EventDataNameVote = "vote"
EventDataNameProposalHeartbeat = "proposer_heartbeat"
EventDataNameProposalHeartbeat = "proposal_heartbeat"
)
// implements events.EventData


Loading…
Cancel
Save