Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 7aa304c

Browse files
committed
Merge pull request #300 from janx/patch-1
remove unnecessary check and invocation in trie
2 parents dab9ed9 + d3e8dad commit 7aa304c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ethereum/trie.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,8 @@ def _delete_child_storage(self, node):
286286
if node_type == NODE_TYPE_BRANCH:
287287
for item in node[:16]:
288288
self._delete_child_storage(self._decode_to_node(item))
289-
elif is_key_value_type(node_type):
290-
node_type = self._get_node_type(node)
291-
if node_type == NODE_TYPE_EXTENSION:
292-
self._delete_child_storage(self._decode_to_node(node[1]))
289+
elif node_type == NODE_TYPE_EXTENSION:
290+
self._delete_child_storage(self._decode_to_node(node[1]))
293291

294292
def _encode_node(self, node):
295293
if node == BLANK_NODE:

0 commit comments

Comments
 (0)