remove shallowcopy from witness builder
This commit is contained in:
parent
8db1109515
commit
9589f9cd90
|
@ -172,7 +172,7 @@ proc getBranchRecurseAux(wb: var WitnessBuilder, node: openArray[byte], path: Ni
|
||||||
proc getBranchRecurse*(wb: var WitnessBuilder; key: openArray[byte]): seq[byte] =
|
proc getBranchRecurse*(wb: var WitnessBuilder; key: openArray[byte]): seq[byte] =
|
||||||
var node = wb.db.get(wb.root.data)
|
var node = wb.db.get(wb.root.data)
|
||||||
getBranchRecurseAux(wb, node, initNibbleRange(key), 0)
|
getBranchRecurseAux(wb, node, initNibbleRange(key), 0)
|
||||||
shallowCopy(result, wb.output.getOutput(seq[byte]))
|
result = wb.output.getOutput(seq[byte])
|
||||||
|
|
||||||
proc getBranchStack*(wb: WitnessBuilder; key: openArray[byte]): string =
|
proc getBranchStack*(wb: WitnessBuilder; key: openArray[byte]): string =
|
||||||
var
|
var
|
||||||
|
|
Loading…
Reference in New Issue