@@ -196,7 +196,7 @@ func TestBlockStorage(t *testing.T) {
196
196
if entry := GetBody (db , block .Hash ()); entry == nil {
197
197
t .Fatalf ("Stored body not found" )
198
198
} else if types .DeriveSha (types .Transactions (entry .Transactions )) != types .DeriveSha (block .Transactions ()) || types .CalcUncleHash (entry .Uncles ) != types .CalcUncleHash (block .Uncles ()) {
199
- t .Fatalf ("Retrieved body mismatch: have %v, want %v" , entry , & types. Body { block .Transactions (), block . Uncles ()} )
199
+ t .Fatalf ("Retrieved body mismatch: have %v, want %v" , entry , block .Body () )
200
200
}
201
201
// Delete the block and verify the execution
202
202
DeleteBlock (db , block .Hash ())
@@ -230,7 +230,7 @@ func TestPartialBlockStorage(t *testing.T) {
230
230
DeleteHeader (db , block .Hash ())
231
231
232
232
// Store a body and check that it's not recognized as a block
233
- if err := WriteBody (db , block .Hash (), & types. Body { block .Transactions (), block . Uncles ()} ); err != nil {
233
+ if err := WriteBody (db , block .Hash (), block .Body () ); err != nil {
234
234
t .Fatalf ("Failed to write body into database: %v" , err )
235
235
}
236
236
if entry := GetBlock (db , block .Hash ()); entry != nil {
@@ -242,7 +242,7 @@ func TestPartialBlockStorage(t *testing.T) {
242
242
if err := WriteHeader (db , block .Header ()); err != nil {
243
243
t .Fatalf ("Failed to write header into database: %v" , err )
244
244
}
245
- if err := WriteBody (db , block .Hash (), & types. Body { block .Transactions (), block . Uncles ()} ); err != nil {
245
+ if err := WriteBody (db , block .Hash (), block .Body () ); err != nil {
246
246
t .Fatalf ("Failed to write body into database: %v" , err )
247
247
}
248
248
if entry := GetBlock (db , block .Hash ()); entry == nil {
0 commit comments