@@ -113,8 +113,8 @@ func TestBlockStorage(t *testing.T) {
113113 block := types .NewBlockWithHeader (& types.Header {
114114 Extra : []byte ("test block" ),
115115 UncleHash : types .EmptyUncleHash ,
116- TxHash : types .EmptyRootHash ,
117- ReceiptHash : types .EmptyRootHash ,
116+ TxHash : types .EmptyTxsHash ,
117+ ReceiptHash : types .EmptyReceiptsHash ,
118118 })
119119 if entry := ReadBlock (db , block .Hash (), block .NumberU64 ()); entry != nil {
120120 t .Fatalf ("Non existent block returned: %v" , entry )
@@ -161,8 +161,8 @@ func TestPartialBlockStorage(t *testing.T) {
161161 block := types .NewBlockWithHeader (& types.Header {
162162 Extra : []byte ("test block" ),
163163 UncleHash : types .EmptyUncleHash ,
164- TxHash : types .EmptyRootHash ,
165- ReceiptHash : types .EmptyRootHash ,
164+ TxHash : types .EmptyTxsHash ,
165+ ReceiptHash : types .EmptyReceiptsHash ,
166166 })
167167 // Store a header and check that it's not recognized as a block
168168 WriteHeader (db , block .Header ())
@@ -198,8 +198,8 @@ func TestBadBlockStorage(t *testing.T) {
198198 Number : big .NewInt (1 ),
199199 Extra : []byte ("bad block" ),
200200 UncleHash : types .EmptyUncleHash ,
201- TxHash : types .EmptyRootHash ,
202- ReceiptHash : types .EmptyRootHash ,
201+ TxHash : types .EmptyTxsHash ,
202+ ReceiptHash : types .EmptyReceiptsHash ,
203203 })
204204 if entry := ReadBadBlock (db , block .Hash ()); entry != nil {
205205 t .Fatalf ("Non existent block returned: %v" , entry )
@@ -216,8 +216,8 @@ func TestBadBlockStorage(t *testing.T) {
216216 Number : big .NewInt (2 ),
217217 Extra : []byte ("bad block two" ),
218218 UncleHash : types .EmptyUncleHash ,
219- TxHash : types .EmptyRootHash ,
220- ReceiptHash : types .EmptyRootHash ,
219+ TxHash : types .EmptyTxsHash ,
220+ ReceiptHash : types .EmptyReceiptsHash ,
221221 })
222222 WriteBadBlock (db , blockTwo )
223223
@@ -235,8 +235,8 @@ func TestBadBlockStorage(t *testing.T) {
235235 Number : big .NewInt (int64 (n )),
236236 Extra : []byte ("bad block" ),
237237 UncleHash : types .EmptyUncleHash ,
238- TxHash : types .EmptyRootHash ,
239- ReceiptHash : types .EmptyRootHash ,
238+ TxHash : types .EmptyTxsHash ,
239+ ReceiptHash : types .EmptyReceiptsHash ,
240240 })
241241 WriteBadBlock (db , block )
242242 }
@@ -446,8 +446,8 @@ func TestAncientStorage(t *testing.T) {
446446 Number : big .NewInt (0 ),
447447 Extra : []byte ("test block" ),
448448 UncleHash : types .EmptyUncleHash ,
449- TxHash : types .EmptyRootHash ,
450- ReceiptHash : types .EmptyRootHash ,
449+ TxHash : types .EmptyTxsHash ,
450+ ReceiptHash : types .EmptyReceiptsHash ,
451451 })
452452 // Ensure nothing non-existent will be read
453453 hash , number := block .Hash (), block .NumberU64 ()
@@ -889,8 +889,8 @@ func TestHeadersRLPStorage(t *testing.T) {
889889 Number : big .NewInt (int64 (i )),
890890 Extra : []byte ("test block" ),
891891 UncleHash : types .EmptyUncleHash ,
892- TxHash : types .EmptyRootHash ,
893- ReceiptHash : types .EmptyRootHash ,
892+ TxHash : types .EmptyTxsHash ,
893+ ReceiptHash : types .EmptyReceiptsHash ,
894894 ParentHash : pHash ,
895895 })
896896 chain = append (chain , block )
0 commit comments