make Block Header and Data non-pointers

make BlockMeta Header a non-pointer

Refs #693
This commit is contained in:
Anton Kaliaev
2018-07-13 12:05:54 +04:00
parent bbf2bd1d81
commit 270659f03f
13 changed files with 59 additions and 72 deletions

View File

@ -80,7 +80,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)
}()