@@ -151,13 +151,13 @@ func TestMergeDelete(t *testing.T) {
151
151
}
152
152
}
153
153
// Add some flipAccs-flopping layers on top
154
- parent := newDiffLayer (emptyLayer (), common.Hash {}, flipDrops (), flipAccs (), storage )
155
- child := parent .Update (common.Hash {}, flopDrops (), flopAccs (), storage )
156
- child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage )
157
- child = child .Update (common.Hash {}, flopDrops (), flopAccs (), storage )
158
- child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage )
159
- child = child .Update (common.Hash {}, flopDrops (), flopAccs (), storage )
160
- child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage )
154
+ parent := newDiffLayer (emptyLayer (), common.Hash {}, flipDrops (), flipAccs (), storage , nil )
155
+ child := parent .Update (common.Hash {}, flopDrops (), flopAccs (), storage , nil )
156
+ child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage , nil )
157
+ child = child .Update (common.Hash {}, flopDrops (), flopAccs (), storage , nil )
158
+ child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage , nil )
159
+ child = child .Update (common.Hash {}, flopDrops (), flopAccs (), storage , nil )
160
+ child = child .Update (common.Hash {}, flipDrops (), flipAccs (), storage , nil )
161
161
162
162
if data , _ := child .Account (h1 ); data == nil {
163
163
t .Errorf ("last diff layer: expected %x account to be non-nil" , h1 )
@@ -209,7 +209,7 @@ func TestInsertAndMerge(t *testing.T) {
209
209
accounts = make (map [common.Hash ][]byte )
210
210
storage = make (map [common.Hash ]map [common.Hash ][]byte )
211
211
)
212
- parent = newDiffLayer (emptyLayer (), common.Hash {}, destructs , accounts , storage )
212
+ parent = newDiffLayer (emptyLayer (), common.Hash {}, destructs , accounts , storage , nil )
213
213
}
214
214
{
215
215
var (
@@ -220,7 +220,7 @@ func TestInsertAndMerge(t *testing.T) {
220
220
accounts [acc ] = randomAccount ()
221
221
storage [acc ] = make (map [common.Hash ][]byte )
222
222
storage [acc ][slot ] = []byte {0x01 }
223
- child = newDiffLayer (parent , common.Hash {}, destructs , accounts , storage )
223
+ child = newDiffLayer (parent , common.Hash {}, destructs , accounts , storage , nil )
224
224
}
225
225
// And flatten
226
226
merged := (child .flatten ()).(* diffLayer )
@@ -256,7 +256,7 @@ func BenchmarkSearch(b *testing.B) {
256
256
for i := 0 ; i < 10000 ; i ++ {
257
257
accounts [randomHash ()] = randomAccount ()
258
258
}
259
- return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage )
259
+ return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage , nil )
260
260
}
261
261
var layer snapshot
262
262
layer = emptyLayer ()
@@ -298,7 +298,7 @@ func BenchmarkSearchSlot(b *testing.B) {
298
298
accStorage [randomHash ()] = value
299
299
storage [accountKey ] = accStorage
300
300
}
301
- return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage )
301
+ return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage , nil )
302
302
}
303
303
var layer snapshot
304
304
layer = emptyLayer ()
@@ -336,7 +336,7 @@ func BenchmarkFlatten(b *testing.B) {
336
336
}
337
337
storage [accountKey ] = accStorage
338
338
}
339
- return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage )
339
+ return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage , nil )
340
340
}
341
341
b .ResetTimer ()
342
342
for i := 0 ; i < b .N ; i ++ {
@@ -386,7 +386,7 @@ func BenchmarkJournal(b *testing.B) {
386
386
}
387
387
storage [accountKey ] = accStorage
388
388
}
389
- return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage )
389
+ return newDiffLayer (parent , common.Hash {}, destructs , accounts , storage , nil )
390
390
}
391
391
layer := snapshot (new (diskLayer ))
392
392
for i := 1 ; i < 128 ; i ++ {
0 commit comments