Explorar o código

好像是ok改了返回值。

skyfffire hai 3 meses
pai
achega
f94fc5c2c0
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      s_erc20_to_mexc.py
  2. 1 1
      s_mexc_to_erc20.py

+ 1 - 1
s_erc20_to_mexc.py

@@ -610,7 +610,7 @@ class ArbitrageProcess:
             # 如果300秒都沒確認成功,該交易大概率沒有上鏈
             if waiting_times <= 0:
                 with self.pending_lock:
-                    response = copy.deepcopy(self.pending_data[chain_tx_hash]['response'])
+                    response = copy.deepcopy(self.pending_data[chain_tx_hash])
                 response_formated = pformat(response, indent=2)
                 msg = f"链上交易确认失败:{chain_tx_hash}\n{response_formated}"
                 logger.error(msg)

+ 1 - 1
s_mexc_to_erc20.py

@@ -560,7 +560,7 @@ class ArbitrageProcess:
             # 如果120秒都沒確認成功,該交易大概率沒有上鏈
             if waiting_times <= 0:
                 with self.pending_lock:
-                    response = copy.deepcopy(self.pending_data[chain_tx_hash]['response'])
+                    response = copy.deepcopy(self.pending_data[chain_tx_hash])
                 response_formated = pformat(response, indent=2)
                 msg = f"链上交易确认失败:{chain_tx_hash}\n{response_formated}"
                 logger.error(msg)