Skip to content

Commit

Permalink
πŸ› Avoid parent container KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Apr 17, 2024
1 parent 2ddfc75 commit c6fe4ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electrumx/server/block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,8 @@ def populate_dmitem_subtype_specific_fields(self, atomical):
f'parent container not found atomical_id={atomical_id}, '
f'parent_container={parent_container}',
)
atomical['$parent_container_name'] = parent_container['$container']
if parent_container.get('$container'):
atomical['$parent_container_name'] = parent_container['$container']
if status == 'verified' and candidate_id == atomical['atomical_id']:
atomical['subtype'] = 'dmitem'
atomical['$dmitem'] = request_dmitem
Expand Down

0 comments on commit c6fe4ef

Please sign in to comment.