Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardwin authored and Ardwin committed Mar 2, 2024
1 parent 8bcc013 commit 3f2d08a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions electrumx/server/block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,6 @@ def put_ft_outputs_by_blueprint(self, ft_blueprint, operations_found_at_inputs,
def color_atomicals_outputs(self, minted_nft, operations_found_at_inputs, atomicals_spent_at_inputs, tx, tx_hash, tx_num, height):
# Build the "blueprint" for how to assign all atomicals
blueprint_builder = AtomicalsTransferBlueprintBuilder(self.logger, minted_nft, atomicals_spent_at_inputs, operations_found_at_inputs, tx_hash, tx, self.get_atomicals_id_mint_info, self.is_dmint_activated(height))

nft_output_blueprint = blueprint_builder.get_nft_output_blueprint()
if nft_output_blueprint and len(nft_output_blueprint.outputs):
if not operations_found_at_inputs or not operations_found_at_inputs['op']:
Expand Down Expand Up @@ -2917,7 +2916,7 @@ def advance_txs(
# Color the outputs of any transferred NFT/FT atomicals according to the rules
# This comes after the creation of any atomicals because any newly minted atomicals must be added to the atomicals_spent_at_inputs
# map because we want to avoid merging any NFTs into the same 0'th output
blueprint_builder = self.color_atomicals_outputs(atomicals_operations_found_at_inputs, atomicals_spent_at_inputs, tx, tx_hash, tx_num, height)
blueprint_builder = self.color_atomicals_outputs(minted_atomical_type == 'NFT', atomicals_operations_found_at_inputs, atomicals_spent_at_inputs, tx, tx_hash, tx_num, height)
for atomical_id in blueprint_builder.get_atomical_ids_spent():
has_at_least_one_valid_atomicals_operation = True
self.logger.debug(f'advance_txs: color_atomicals_outputs atomical_ids_transferred. atomical_id={atomical_id.hex()}, tx_hash={hash_to_hex_str(tx_hash)}')
Expand Down

0 comments on commit 3f2d08a

Please sign in to comment.