Skip to content

Instantly share code, notes, and snippets.

@Timonchegs
Timonchegs / deepseek
Created December 18, 2025 16:43
last test
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';
@Timonchegs
Timonchegs / для дипсика
Created December 19, 2025 07:05
запрос
ответ от 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
@Timonchegs
Timonchegs / last_30122025
Last active December 30, 2025 02:48
deepseek_proxy
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=',
@Timonchegs
Timonchegs / js
Created December 24, 2025 04:08
gemini
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';
@Timonchegs
Timonchegs / js
Created December 30, 2025 02:12
gemini
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=';
// =============================================