소스 검색

好像是ok改了返回值。

skyfffire 3 달 전
부모
커밋
f94fc5c2c0
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)