Bitcoin Forum
July 25, 2026, 02:53:27 AM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Getblocktemplate reference implementation?  (Read 68 times)
nidhoggr (OP)
Newbie
*
Offline

Activity: 12
Merit: 0


View Profile
April 27, 2025, 06:49:53 AM
 #1

I'm looking for a reference implementation of a miner in Python, C, Verilog or whatever which operates as a solo miner taking a getblocktemplate json from my local bitcoind as input and submit the found nonce upstream to bitcoind core on testnet.

The key here is how data from the getblocktemplate is extracted and passed to the SHA256 hasher and also how the found nonce is embedded and passed to bitcoind. The actual hashing iteration part is well understood. But I'm not familiar with all the terminology in the BIPs so reading code would hopefully clear things up.

This is for getting an understanding of the full process and not for profit.
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!