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
| const net = require('net'); | |
| const https = require('https'); | |
| class AbelianStratumProxy { | |
| constructor() { | |
| this.currentJob = null; | |
| // Конфигурация из логов пула | |
| this.difficulty = 0.5; | |
| this.target = '00000001ffff0000000000000000000000000000000000000000000000000000'; // Для diff 0.5 | |
| this.algo = 'abelhash'; |
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
| ответ от https://bothub.ru : | |
| TeamRedMiner Mining Protocol Message Processing: A Technical Analysis of Epoch, Target, and Extranonce HandlingTeamRedMiner is an optimized AMD GPU and FPGA cryptocurrency miner that implements sophisticated protocol handling for communicating with mining pools using the Stratum protocol[1][2]. At the core of its mining operation lies the critical task of parsing mining protocol messages, particularly the mining.set notification, which carries essential parameters including epoch, target, and extranonce values that must be precisely translated into GPU-executable instructions. Understanding how TeamRedMiner processes these parameters reveals the intricate relationship between pool-side difficulty distribution and GPU-level hash computation, demonstrating why the miner converts target values into local share difficulty thresholds for efficient work distribution across compute devices.Stratum Protocol Fundamentals and Mining.Set Message ArchitectureThe Stratum protocol represents a |
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
| const net = require('net'); | |
| const http = require('http'); | |
| const crypto = require('crypto'); | |
| // КОНФИГУРАЦИЯ | |
| const CONFIG = { | |
| STRATUM_PORT: 3333, | |
| NODE_RPC_HOST: '127.0.0.1', | |
| NODE_GETWORK_PORT: 8668, | |
| RPC_USER: 'tteFTlJ7YOfGDA2KBMHKqnDnXeE=', |
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
| const net = require('net'); | |
| const jayson = require('jayson/promise'); | |
| // --- КОНФИГУРАЦИЯ (ВАШИ ДАННЫЕ) --- | |
| const PROXY_PORT = 3333; | |
| // Подключаемся локально, так как скрипт и нода на одной машине (192.168.2.180) | |
| // Используем порт 8668, так как он указан для rpclistengetwork | |
| const NODE_RPC_URL = 'http://127.0.0.1:8668'; |
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
| const net = require('net'); | |
| const axios = require('axios'); | |
| // ================= НАСТРОЙКИ ================= | |
| const PROXY_PORT = 3333; | |
| const NODE_RPC_URL = 'http://127.0.0.1:8668'; | |
| const NODE_RPC_USER = 'tteFTlJ7YOfGDA2KBMHKqnDnXeE='; | |
| const NODE_RPC_PASS = 'SOkvF8sxay8ViOxpgbraHmqJmSU='; | |
| // ============================================= |
OlderNewer