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 axios = require('axios'); | |
| const crypto = require('crypto'); | |
| const { Server } = require('socket.io'); | |
| const socketApp = require('express')(); | |
| // РЕАЛЬНОЕ РЕШЕНИЕ - TeamRedMiner ETHASH СОВМЕСТИМОСТЬ | |
| const config = { | |
| abelRpcHost: '127.0.0.1', |
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
| Тема: Доработка Node.js stratum-proxy для Abelian и teamredminer. | |
| Цель: В скрипте есть соединение и хешрейт, но майнер не отправляет решения либо они не обрабатываются. Нужно исправить обработку протокола, чтобы прокси принимал шары и отправлял nonce на ноду через RPC. | |
| Контекст задачи: | |
| Стек: Node.js, протокол Stratum для майнинга. | |
| Сервер: Abelian нода (abec). Работа с ней идёт через JSON-RPC порт 8667 (используется в коде для getwork). | |
| Ubuntu статика 192.168.2.180 - работаю под root, эта же директория рабочая | |
| Доступ из вне по 77.82.85.68 | |
| параметры abec.conf | |
| nodetype=normalnode | |
| rpcuser=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 express = require('express'); | |
| const socketIO = require('socket.io'); | |
| const http = require('http'); | |
| const app = express(); | |
| const server = http.createServer(app); | |
| const io = socketIO(server); | |
| // Конфигурация | |
| const WEB_PORT = 8080; |
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
| 1. Узнать точный формат mining.notify для Abelcoin в TeamRedMiner | |
| Посмотрите документацию TeamRedMiner по Abelcoin: | |
| bash | |
| # Запустите TeamRedMiner с помощью для Abelcoin | |
| /hive/miners/teamredminer/0.10.21/teamredminer --help | grep -A 10 -i abel | |
| !ПРВЕРИЛ - ВОТ |
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
| только логгер | |
| root@burilich:/home/user# python3 logger_proxy_v2.py | |
| [*] Прокси-логгер V2 слушает порт 8888 | |
| [*] Настройте майнер на stratum+tcp://ВАШ_IP:8888 | |
| ------------------------------------------------------------ | |
| [+] Входящее от 127.0.0.1:36988 | |
| [+] Подключение к пулу установлено. | |
| [!] Ошибка в потоке К ПУЛУ: [Errno 32] Broken pipe | |
| [+] Входящее от 127.0.0.1:56174 |
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 axios = require("axios"); | |
| const crypto = require("crypto"); | |
| const config = { | |
| // Node configuration | |
| abelRpcHost: "127.0.0.1", | |
| abelGetWorkPort: 8668, // Port for getting work (rpclistengetwork) | |
| abelSubmitPort: 8667, // Port for submitting nonce (rpclisten / RPC) |
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
| // test_abelian29_final.js | |
| // Final Abelian Stratum proxy (forward / local test mode) | |
| // Usage: | |
| // Forward (default): node test_abelian29_final.js | |
| // Local test accept: MODE=local node test_abelian29_final.js | |
| const net = require('net'); | |
| const http = require('http'); | |
| const MODE = (process.env.MODE || process.env.NODE_ENV || 'forward').toLowerCase(); // 'forward' or 'local' |
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
| root@burilich:/home/user# timeout 300 /hive/miners/teamredminer/0.10.21/teamredminer -a abel -o stratum+tcp://emily-service.abelian.info:27778 -u abe1e549028e8de000d39d942a282d7a94babbca2183b05101731ae079baefbd7654b1039d1ad4a6c59385448894c0effffe751d96b720ae933371caa168376f51a7.deepseek_rig -p 44960d94ec --user 1ac57913f85d90cd8e31fdb110c1385c632f47caa3cdd37e8527ec39826197ea --debug --pool_debug | |
| Team Red Miner version 0.10.21 | |
| [2025-12-22 17:10:13] Auto-detected AMD OpenCL platform 0 | |
| [2025-12-22 17:10:13] Initializing GPU 0. | |
| [2025-12-22 17:10:14] Initializing GPU 1. | |
| [2025-12-22 17:10:14] Initializing GPU 2. | |
| [2025-12-22 17:10:15] Initializing GPU 3. | |
| [2025-12-22 17:10:15] Initializing GPU 4. | |
| [2025-12-22 17:10:15] Initializing GPU 5. | |
| [2025-12-22 17:10:15] GPU 0 Starting tuning. |
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
| root@nodeabel:~/abelcoin-proxy# node test_abelian39.js | |
| Stratum proxy listening on port 3333 | |
| Node RPC: 127.0.0.1:8667 | |
| Node Getwork: 127.0.0.1:8668 | |
| Starting difficulty: 4096 | |
| Error generating new job: Invalid response from node: {"result":null,"error":{"code":-32602,"message":"wrong number of params (expected 1, received 0)"},"id":1} | |
| New miner connected: 176.59.139.197:55470 | |
| Received from miner 176.59.139.197:55470: {"id":1,"method":"mining.hello","params":["ethminer-2.0.2+commit.ef1122c0","77.82.85.68","d05","AbelianStratum"]} | |
| Unknown method from 176.59.139.197:55470: mining.hello |
OlderNewer