Skip to content

Commit

Permalink
delete change not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Sep 19, 2024
1 parent 7884bcd commit 3bf7b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nimbus/db/aristo/aristo_delete.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ proc deleteImpl(

# Unlink child vertex from structural table
br.vtx.bVid[hike.legs[^2].nibble] = VertexID(0)
db.layersUpdateVtx((hike.root, br.vid), br.vtx)
db.layersPutVtx((hike.root, br.vid), br.vtx)

# Clear all Merkle hash keys up to the root key
for n in 0 .. hike.legs.len - 2:
Expand Down Expand Up @@ -111,7 +111,7 @@ proc deleteImpl(
bVid: nxt.bVid)

# Put the new vertex at the id of the obsolete branch
db.layersUpdateVtx((hike.root, br.vid), vtx)
db.layersPutVtx((hike.root, br.vid), vtx)

if vtx.vType == Leaf:
ok(vtx)
Expand Down

0 comments on commit 3bf7b0b

Please sign in to comment.