Browse Source

Apply suggestions from code review

Co-authored-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
pull/8080/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
05b10550dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      internal/consensus/byzantine_test.go
  2. +1
    -1
      internal/evidence/pool.go

+ 1
- 2
internal/consensus/byzantine_test.go View File

@ -88,8 +88,7 @@ func TestByzantinePrevoteEquivocation(t *testing.T) {
}
eventBus := eventbus.NewDefault(log.TestingLogger().With("module", "events"))
err = eventBus.Start(ctx)
require.NoError(t, err)
require.NoError(t, eventBus.Start(ctx))
// Make a full instance of the evidence pool
evidenceDB := dbm.NewMemDB()


+ 1
- 1
internal/evidence/pool.go View File

@ -252,7 +252,7 @@ func (evpool *Pool) State() sm.State {
func (evpool *Pool) Start(state sm.State) error {
if evpool.isStarted {
return errors.New("pooli is already running")
return errors.New("pool is already running")
}
evpool.state = state


Loading…
Cancel
Save