Browse Source

remove events we do not emit

pull/1936/head
Anton Kaliaev 6 years ago
parent
commit
6fe8ea966a
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 2 additions and 20 deletions
  1. +2
    -10
      types/event_bus_test.go
  2. +0
    -10
      types/events.go

+ 2
- 10
types/event_bus_test.go View File

@ -126,11 +126,7 @@ func benchmarkEventBus(numClients int, randQueries bool, randEvents bool, b *tes
} }
} }
var events = []string{EventBond,
EventUnbond,
EventRebond,
EventDupeout,
EventFork,
var events = []string{
EventNewBlock, EventNewBlock,
EventNewBlockHeader, EventNewBlockHeader,
EventNewRound, EventNewRound,
@ -148,11 +144,7 @@ func randEvent() string {
return events[rand.Intn(len(events))] return events[rand.Intn(len(events))]
} }
var queries = []tmpubsub.Query{EventQueryBond,
EventQueryUnbond,
EventQueryRebond,
EventQueryDupeout,
EventQueryFork,
var queries = []tmpubsub.Query{
EventQueryNewBlock, EventQueryNewBlock,
EventQueryNewBlockHeader, EventQueryNewBlockHeader,
EventQueryNewRound, EventQueryNewRound,


+ 0
- 10
types/events.go View File

@ -10,22 +10,17 @@ import (
// Reserved event types // Reserved event types
const ( const (
EventBond = "Bond"
EventCompleteProposal = "CompleteProposal" EventCompleteProposal = "CompleteProposal"
EventDupeout = "Dupeout"
EventFork = "Fork"
EventLock = "Lock" EventLock = "Lock"
EventNewBlock = "NewBlock" EventNewBlock = "NewBlock"
EventNewBlockHeader = "NewBlockHeader" EventNewBlockHeader = "NewBlockHeader"
EventNewRound = "NewRound" EventNewRound = "NewRound"
EventNewRoundStep = "NewRoundStep" EventNewRoundStep = "NewRoundStep"
EventPolka = "Polka" EventPolka = "Polka"
EventRebond = "Rebond"
EventRelock = "Relock" EventRelock = "Relock"
EventTimeoutPropose = "TimeoutPropose" EventTimeoutPropose = "TimeoutPropose"
EventTimeoutWait = "TimeoutWait" EventTimeoutWait = "TimeoutWait"
EventTx = "Tx" EventTx = "Tx"
EventUnbond = "Unbond"
EventUnlock = "Unlock" EventUnlock = "Unlock"
EventVote = "Vote" EventVote = "Vote"
EventProposalHeartbeat = "ProposalHeartbeat" EventProposalHeartbeat = "ProposalHeartbeat"
@ -113,11 +108,6 @@ const (
) )
var ( var (
EventQueryBond = QueryForEvent(EventBond)
EventQueryUnbond = QueryForEvent(EventUnbond)
EventQueryRebond = QueryForEvent(EventRebond)
EventQueryDupeout = QueryForEvent(EventDupeout)
EventQueryFork = QueryForEvent(EventFork)
EventQueryNewBlock = QueryForEvent(EventNewBlock) EventQueryNewBlock = QueryForEvent(EventNewBlock)
EventQueryNewBlockHeader = QueryForEvent(EventNewBlockHeader) EventQueryNewBlockHeader = QueryForEvent(EventNewBlockHeader)
EventQueryNewRound = QueryForEvent(EventNewRound) EventQueryNewRound = QueryForEvent(EventNewRound)


Loading…
Cancel
Save