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
| 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
| Тема: Доработка 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 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', |
NewerOlder