111
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def process_trade(trade: Dict[str, Any], user_address: str = None): | |
| """处理单个交易""" | |
| try: | |
| transaction_hash = trade.get('transactionHash', '') | |
| if transaction_hash in processed_trades: | |
| return | |
| processed_trades.add(transaction_hash) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import httplib | |
| import threading | |
| import time | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SDL2/SDL.h> | |
| #include <SDL2/SDL_image.h> | |
| #include <SDL2/SDL_thread.h> | |
| #include <iostream> | |
| #include <queue> | |
| #include <string> | |
| SDL_mutex* mutex; | |
| std::queue<int> shared_queue; |