Merge pull request #1965 from tendermint/693-part-2

make Block Header and Data non-pointers
This commit is contained in:
Alexander Simmerl
2018-07-20 17:42:42 +02:00
committed by GitHub
13 changed files with 59 additions and 72 deletions

View File

@ -79,7 +79,7 @@ func TestBasic(t *testing.T) {
}
// Request desired, pretend like we got the block immediately.
go func() {
block := &types.Block{Header: &types.Header{Height: request.Height}}
block := &types.Block{Header: types.Header{Height: request.Height}}
pool.AddBlock(request.PeerID, block, 123)
t.Logf("Added block from peer %v (height: %v)", request.PeerID, request.Height)
}()