File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ SharedModuleCacheCompiler::start()
145
145
mThreads .emplace_back (std::thread ([this ]() {
146
146
ZoneScopedN (" load wasm contracts" );
147
147
std::unordered_set<Hash> seenContracts;
148
+ size_t liveContracts{0 };
148
149
this ->mSnap ->scanForEntriesOfType (
149
150
CONTRACT_CODE, [&](BucketEntry const & entry) {
150
151
Hash h;
@@ -155,6 +156,7 @@ SharedModuleCacheCompiler::start()
155
156
h = entry.liveEntry ().data .contractCode ().hash ;
156
157
if (seenContracts.find (h) == seenContracts.end ())
157
158
{
159
+ ++liveContracts;
158
160
this ->pushWasm (
159
161
entry.liveEntry ().data .contractCode ().code );
160
162
}
@@ -168,7 +170,7 @@ SharedModuleCacheCompiler::start()
168
170
seenContracts.insert (h);
169
171
return Loop::INCOMPLETE;
170
172
});
171
- this ->setFinishedLoading (seenContracts. size () );
173
+ this ->setFinishedLoading (liveContracts );
172
174
}));
173
175
174
176
for (auto thread = 1 ; thread < this ->mNumThreads ; ++thread)
You can’t perform that action at this time.
0 commit comments