Skip to content

Commit

Permalink
fix cbor deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowv0vshadow committed Apr 17, 2024
1 parent a8a24b8 commit 3409da5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions electrumx/server/block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,9 +1617,10 @@ def put_or_delete_init_state_updates(self, mint_info, data_payload, Delete):
height = mint_info['reveal_location_height']

# Make a deep copy of the data payload and remove the reserved sections
copied_data_state = copy.deepcopy(data_payload)
# Remove any of the reserved sections
copied_data_state.pop('args', None)
copied_data_state = {}
for k, v in data_payload.items():
if k != "args":
copied_data_state[k] = v
init_payload_bytes = dumps(copied_data_state)
op_struct = {
'op': 'mod',
Expand Down

0 comments on commit 3409da5

Please sign in to comment.