From b9f48c48990357144f0c3684769716fe9b451079 Mon Sep 17 00:00:00 2001 From: AM shadow <154503348+shadowv0vshadow@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:49:11 +0800 Subject: [PATCH] remove await --- electrumx/server/session/session_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrumx/server/session/session_manager.py b/electrumx/server/session/session_manager.py index 7b717d61..0283591a 100644 --- a/electrumx/server/session/session_manager.py +++ b/electrumx/server/session/session_manager.py @@ -1095,7 +1095,7 @@ async def make_transfer_inputs(result, inputs_atomicals, tx_inputs, make_type) - result[_i.txin_index].append(_data) return result - async def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]: + def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]: for k, v in outputs: for _atomical_id, _output in v["atomicals"].items(): _compact_atomical_id = location_id_bytes_to_compact(_atomical_id) @@ -1117,12 +1117,12 @@ async def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]: if not operation_type and not op_raw: op_raw = "transfer" await make_transfer_inputs(res["transfers"]["inputs"], blueprint_builder.ft_atomicals, tx.inputs, "FT") - await make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.ft_output_blueprint.outputs) + make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.ft_output_blueprint.outputs) if blueprint_builder.nft_atomicals and atomicals_spent_at_inputs: if not operation_type and not op_raw: op_raw = "transfer" await make_transfer_inputs(res["transfers"]["inputs"], blueprint_builder.nft_atomicals, tx.inputs, "NFT") - await make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.nft_output_blueprint.outputs) + make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.nft_output_blueprint.outputs) ( payment_id,