@@ -138,7 +138,7 @@ func TestBlockStorage(t *testing.T) {
138138 if entry := ReadBody (db , block .Hash (), block .NumberU64 ()); entry == nil {
139139 t .Fatalf ("Stored body not found" )
140140 } else if types .DeriveSha (types .Transactions (entry .Transactions ), newTestHasher ()) != types .DeriveSha (block .Transactions (), newTestHasher ()) || types .CalcUncleHash (entry .Uncles ) != types .CalcUncleHash (block .Uncles ()) {
141- t .Fatalf ("Retrieved body mismatch: have %v, want %v" , entry , block . Body ( ))
141+ t .Fatalf ("Retrieved body mismatch: have %v, want %v" , entry , types . BlockBody ( block ))
142142 }
143143 // Delete the block and verify the execution
144144 DeleteBlock (db , block .Hash (), block .NumberU64 ())
@@ -170,15 +170,15 @@ func TestPartialBlockStorage(t *testing.T) {
170170 DeleteHeader (db , block .Hash (), block .NumberU64 ())
171171
172172 // Store a body and check that it's not recognized as a block
173- WriteBody (db , block .Hash (), block .NumberU64 (), block . Body ( ))
173+ WriteBody (db , block .Hash (), block .NumberU64 (), types . BlockBody ( block ))
174174 if entry := ReadBlock (db , block .Hash (), block .NumberU64 ()); entry != nil {
175175 t .Fatalf ("Non existent block returned: %v" , entry )
176176 }
177177 DeleteBody (db , block .Hash (), block .NumberU64 ())
178178
179179 // Store a header and a body separately and check reassembly
180180 WriteHeader (db , block .Header ())
181- WriteBody (db , block .Hash (), block .NumberU64 (), block . Body ( ))
181+ WriteBody (db , block .Hash (), block .NumberU64 (), types . BlockBody ( block ))
182182
183183 if entry := ReadBlock (db , block .Hash (), block .NumberU64 ()); entry == nil {
184184 t .Fatalf ("Stored block not found" )
0 commit comments