fix typo
This commit is contained in:
parent
7c2ed75b09
commit
41753a55e9
|
@ -203,7 +203,7 @@ proc branchNode(t: var TreeBuilder, depth: int, storageMode: bool): NodeKey =
|
||||||
r.append ""
|
r.append ""
|
||||||
|
|
||||||
if branchMaskBitIsSet(mask, 16):
|
if branchMaskBitIsSet(mask, 16):
|
||||||
raise newException(ParsingError, "The 17th elem of branh node should empty")
|
raise newException(ParsingError, "The 17th elem of branch node should empty")
|
||||||
|
|
||||||
# 17th elem should always empty
|
# 17th elem should always empty
|
||||||
r.append ""
|
r.append ""
|
||||||
|
@ -265,7 +265,7 @@ proc extensionNode(t: var TreeBuilder, depth: int, storageMode: bool): NodeKey =
|
||||||
case nodeType
|
case nodeType
|
||||||
of BranchNodeType: r.append t.branchNode(depth + nibblesLen, storageMode)
|
of BranchNodeType: r.append t.branchNode(depth + nibblesLen, storageMode)
|
||||||
of HashNodeType: r.append t.hashNode()
|
of HashNodeType: r.append t.hashNode()
|
||||||
else: raise newException(ValueError, "wrong type during parsing child of extension node")
|
else: raise newException(ParsingError, "wrong type during parsing child of extension node")
|
||||||
|
|
||||||
result = t.toNodeKey(r.finish)
|
result = t.toNodeKey(r.finish)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue