Browse Source

Merge pull request #1679 from tendermint/flush-wal-on-stop

Flush cs.wal on stop
pull/1693/head
Ethan Buchman 7 years ago
committed by GitHub
parent
commit
825fdf2c24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions
  1. +3
    -3
      Gopkg.lock
  2. +1
    -1
      Gopkg.toml
  3. +1
    -1
      consensus/wal.go
  4. +1
    -0
      p2p/pex/pex_reactor_test.go

+ 3
- 3
Gopkg.lock View File

@ -281,10 +281,10 @@
"flowrate",
"log",
"merkle",
"merkle/tmhash",
"test"
]
revision = "cc5f287c4798ffe88c04d02df219ecb6932080fd"
version = "v0.8.3-rc0"
revision = "0803cd354816952a8d8bcba88c592b3eb54ac427"
[[projects]]
branch = "master"
@ -382,6 +382,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "d85c98dcac32cc1fe05d006aa75e8985f6447a150a041b972a673a65e7681da9"
inputs-digest = "aa8421ead26741e4ff7a59edb48dd7f12c8f29e3d6c0a893f95ea3fa3023a095"
solver-name = "gps-cdcl"
solver-version = 1

+ 1
- 1
Gopkg.toml View File

@ -83,7 +83,7 @@
[[override]]
name = "github.com/tendermint/tmlibs"
version = "~0.8.3-rc0"
revision = "0803cd354816952a8d8bcba88c592b3eb54ac427"
[[constraint]]
name = "google.golang.org/grpc"


+ 1
- 1
consensus/wal.go View File

@ -106,8 +106,8 @@ func (wal *baseWAL) OnStart() error {
}
func (wal *baseWAL) OnStop() {
wal.BaseService.OnStop()
wal.group.Stop()
wal.group.Close()
}
// Write is called in newStep and for each receive on the


+ 1
- 0
p2p/pex/pex_reactor_test.go View File

@ -54,6 +54,7 @@ func TestPEXReactorAddRemovePeer(t *testing.T) {
outboundPeer := p2p.CreateRandomPeer(true)
r.AddPeer(outboundPeer)
assert.Equal(t, size+1, book.Size(), "outbound peers should not be added to the address book")
r.RemovePeer(outboundPeer, "peer not available")
}


Loading…
Cancel
Save