File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
execution_chain/db/aristo Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ proc computeKeyImpl(
286286 skipLayers = skipLayers,
287287 )
288288 batch.leave (n)
289-
289+
290290 template writeBranch (vtx: BranchRef ): HashKey =
291291 encodeBranch (vtx):
292292 if subvid.isValid:
@@ -295,10 +295,15 @@ proc computeKeyImpl(
295295 else :
296296 VOID_HASH_KEY
297297
298+ var encoding: HashKey
298299 if vtx.vType == ExtBranch :
299300 let vtx = ExtBranchRef (vtx)
300- encodeExt (vtx.pfx):
301+ encoding = encodeExt (vtx.pfx):
301302 writeBranch (vtx)
303+ else :
304+ encoding = writeBranch (vtx)
305+
306+ encoding
302307
303308 # Cache the hash into the same storage layer as the the top-most value that it
304309 # depends on (recursively) - this could be an ephemeral in-memory layer or the
You can’t perform that action at this time.
0 commit comments