Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Feb 7, 2025
1 parent f0d3121 commit a2723c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nimbus/db/aristo/aristo_tx/tx_frame.nim
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ proc rollback*(
# TODO Everyone using this txref should repoint their parent field
let parent = tx.parent
let vTop = tx.layer[].cTop
tx.layer[] = Layer(vTop: vTop, cTop: vTop, sTab: parent.layer.sTab, kMap: parent.layer.kMap, accLeaves: parent.layer.accLeaves, stoLeaves: parent.layer.stoLeaves)
tx.layer[] = Layer(vTop: vTop, cTop: vTop)

if parent != nil:
tx.layer.sTab = parent.layer.sTab
tx.layer.kMap= parent.layer.kMap
tx.layer.accLeaves = parent.layer.accLeaves
tx.layer.stoLeaves= parent.layer.stoLeaves

ok()

Expand Down

0 comments on commit a2723c1

Please sign in to comment.