From 9589f9cd90221f8362ce7e99cd0a00173c2b10eb Mon Sep 17 00:00:00 2001 From: andri lim Date: Fri, 24 Apr 2020 18:55:58 +0700 Subject: [PATCH] remove shallowcopy from witness builder --- stateless/witness_from_tree.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stateless/witness_from_tree.nim b/stateless/witness_from_tree.nim index 6153c66d0..14ddc6bbd 100644 --- a/stateless/witness_from_tree.nim +++ b/stateless/witness_from_tree.nim @@ -172,7 +172,7 @@ proc getBranchRecurseAux(wb: var WitnessBuilder, node: openArray[byte], path: Ni proc getBranchRecurse*(wb: var WitnessBuilder; key: openArray[byte]): seq[byte] = var node = wb.db.get(wb.root.data) 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 = var