@@ -76,7 +76,7 @@ func benchmarkSearch(b *testing.B, depth int, total int) {
76
76
nblob = common .CopyBytes (blob )
77
77
}
78
78
}
79
- return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), nil )
79
+ return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), new ( StateSetWithOrigin ) )
80
80
}
81
81
var layer layer
82
82
layer = emptyLayer ()
@@ -118,7 +118,7 @@ func BenchmarkPersist(b *testing.B) {
118
118
)
119
119
nodes [common.Hash {}][string (path )] = node
120
120
}
121
- return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), nil )
121
+ return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), new ( StateSetWithOrigin ) )
122
122
}
123
123
for i := 0 ; i < b .N ; i ++ {
124
124
b .StopTimer ()
@@ -156,8 +156,7 @@ func BenchmarkJournal(b *testing.B) {
156
156
)
157
157
nodes [common.Hash {}][string (path )] = node
158
158
}
159
- // TODO(rjl493456442) a non-nil state set is expected.
160
- return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), nil )
159
+ return newDiffLayer (parent , common.Hash {}, 0 , 0 , newNodeSet (nodes ), new (StateSetWithOrigin ))
161
160
}
162
161
var layer layer
163
162
layer = emptyLayer ()
0 commit comments