@@ -113,8 +113,8 @@ func TestBlockStorage(t *testing.T) {
113
113
block := types .NewBlockWithHeader (& types.Header {
114
114
Extra : []byte ("test block" ),
115
115
UncleHash : types .EmptyUncleHash ,
116
- TxHash : types .EmptyRootHash ,
117
- ReceiptHash : types .EmptyRootHash ,
116
+ TxHash : types .EmptyTxsHash ,
117
+ ReceiptHash : types .EmptyReceiptsHash ,
118
118
})
119
119
if entry := ReadBlock (db , block .Hash (), block .NumberU64 ()); entry != nil {
120
120
t .Fatalf ("Non existent block returned: %v" , entry )
@@ -161,8 +161,8 @@ func TestPartialBlockStorage(t *testing.T) {
161
161
block := types .NewBlockWithHeader (& types.Header {
162
162
Extra : []byte ("test block" ),
163
163
UncleHash : types .EmptyUncleHash ,
164
- TxHash : types .EmptyRootHash ,
165
- ReceiptHash : types .EmptyRootHash ,
164
+ TxHash : types .EmptyTxsHash ,
165
+ ReceiptHash : types .EmptyReceiptsHash ,
166
166
})
167
167
// Store a header and check that it's not recognized as a block
168
168
WriteHeader (db , block .Header ())
@@ -198,8 +198,8 @@ func TestBadBlockStorage(t *testing.T) {
198
198
Number : big .NewInt (1 ),
199
199
Extra : []byte ("bad block" ),
200
200
UncleHash : types .EmptyUncleHash ,
201
- TxHash : types .EmptyRootHash ,
202
- ReceiptHash : types .EmptyRootHash ,
201
+ TxHash : types .EmptyTxsHash ,
202
+ ReceiptHash : types .EmptyReceiptsHash ,
203
203
})
204
204
if entry := ReadBadBlock (db , block .Hash ()); entry != nil {
205
205
t .Fatalf ("Non existent block returned: %v" , entry )
@@ -216,8 +216,8 @@ func TestBadBlockStorage(t *testing.T) {
216
216
Number : big .NewInt (2 ),
217
217
Extra : []byte ("bad block two" ),
218
218
UncleHash : types .EmptyUncleHash ,
219
- TxHash : types .EmptyRootHash ,
220
- ReceiptHash : types .EmptyRootHash ,
219
+ TxHash : types .EmptyTxsHash ,
220
+ ReceiptHash : types .EmptyReceiptsHash ,
221
221
})
222
222
WriteBadBlock (db , blockTwo )
223
223
@@ -235,8 +235,8 @@ func TestBadBlockStorage(t *testing.T) {
235
235
Number : big .NewInt (int64 (n )),
236
236
Extra : []byte ("bad block" ),
237
237
UncleHash : types .EmptyUncleHash ,
238
- TxHash : types .EmptyRootHash ,
239
- ReceiptHash : types .EmptyRootHash ,
238
+ TxHash : types .EmptyTxsHash ,
239
+ ReceiptHash : types .EmptyReceiptsHash ,
240
240
})
241
241
WriteBadBlock (db , block )
242
242
}
@@ -446,8 +446,8 @@ func TestAncientStorage(t *testing.T) {
446
446
Number : big .NewInt (0 ),
447
447
Extra : []byte ("test block" ),
448
448
UncleHash : types .EmptyUncleHash ,
449
- TxHash : types .EmptyRootHash ,
450
- ReceiptHash : types .EmptyRootHash ,
449
+ TxHash : types .EmptyTxsHash ,
450
+ ReceiptHash : types .EmptyReceiptsHash ,
451
451
})
452
452
// Ensure nothing non-existent will be read
453
453
hash , number := block .Hash (), block .NumberU64 ()
@@ -889,8 +889,8 @@ func TestHeadersRLPStorage(t *testing.T) {
889
889
Number : big .NewInt (int64 (i )),
890
890
Extra : []byte ("test block" ),
891
891
UncleHash : types .EmptyUncleHash ,
892
- TxHash : types .EmptyRootHash ,
893
- ReceiptHash : types .EmptyRootHash ,
892
+ TxHash : types .EmptyTxsHash ,
893
+ ReceiptHash : types .EmptyReceiptsHash ,
894
894
ParentHash : pHash ,
895
895
})
896
896
chain = append (chain , block )
0 commit comments