Bitcoin Forum
December 29, 2025, 12:47:04 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Tool] BlockTemplate Inspector – Don’t trust mining pools, verify them  (Read 68 times)
itrider (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 1


View Profile
December 10, 2025, 09:48:01 AM
Merited by Cricktor (1)
 #1

Many mining pools especially newly created “solo” pools are appearing lately.
A common scam consists of making miners believe they are mining in true solo mode, while the pool is actually proxying the hashrate to a large PPS/FPPS pool.
In such cases, the miner never receives real block templates generated by the pool.

This makes it essential to verify what pools actually send instead of blindly trusting them.

I developed BlockTemplate Inspector, a Python script that analyzes a Stratum V1 mining.notify message and displays the full structure of the job.

What the tool helps you verify:

  • whether the pool truly generates its own block templates
  • whether the coinbase contains the pool’s signature
  • whether your solo address really appears in the coinbase, if it doesn’t, you are not solo mining
  • whether extranonce and merkle branches update correctly
  • whether the job corresponds to solo mining instead of a job forwarded from a large PPS/FPPS pool

Features:

  • connects to any Stratum V1 pool
  • automatically sends mining.subscribe and mining.authorize
  • captures the first mining.notify
  • detailed job display:
  • job ID
  • prevhash (LE/BE)
  • version, nbits, ntime, clean_jobs
  • coinbase1 and coinbase2
  • extranonce1 and extranonce2 size
  • merkle branches
  • full coinbase reconstruction
  • coinbase decoding
  • no external dependencies (Python standard library only)
  • does NOT mine and does NOT submit shares

Usage:

Code:
python3 blocktemplate_inspector.py
--host stratum+tcp://pool.example.com:3333
--user my_worker
--password x

GitHub repository:
https://github.com/Les-Chauffagistes/BlockTemplate-Inspector

This tool allows miners to verify what pools actually send and to detect hashrate redirection or proxy scams.
Feel free to send feedback!
Cricktor
Legendary
*
Offline Offline

Activity: 1358
Merit: 3360



View Profile
December 13, 2025, 07:26:22 PM
 #2

I would suggest to use English language in your code. While most of the output of your tool looks like to be in English, all other output seems to be in French. I have no problems with French, but either stick to one common language or make it multi-language capable.

Just my two cents. I only briefly looked over the code at Github, didn't try your tool.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
kano
Legendary
*
Offline Offline

Activity: 4788
Merit: 1909


Linux since 1997 RedHat 4


View Profile
December 13, 2025, 11:02:33 PM
 #3

Based on what you said here: https://github.com/Les-Chauffagistes/BlockTemplate-Inspector/blob/main/README.md
You'd probably want to dump 'details' of the full coinbase transaction.
i.e. where the mined BTC will go - an ascii/hex dump doesn't show this easily
This should either be the pool's well known address, or less securely, the miner's chosen address on solo pools that do that.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!