Bitcoin Forum
June 03, 2024, 01:08:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Technical question(where and how to get a block header to hash) on: November 25, 2015, 12:31:09 AM
I'm learning as I go....

Blockchain provides a list of unconfirmed transactions(https://blockchain.info/unconfirmed-transactions?format=json).  So I add a coin generation transaction(still lost on how to do this) to the top of the list and create a merkle tree from this list.  This is how I get the Merkle root for my newly minted header.  Now I perform the SHA256(SHA256(Block_Header)).  Now through my coding wizardry I find a hash with the appropriate number of leading zero's in the first round(yea, I'm that good, lucky or whatever....).   Any idea on how to send this winning header to the collective?  I can't see (or don't know where to look for) documentation on this from Blockchain.

Once again, thanks everyone for the help.
2  Bitcoin / Development & Technical Discussion / Re: Technical question(where and how to get a block header to hash) on: November 24, 2015, 02:00:21 AM
My reply was not sarcastic, it was accurate as is, I truly appreciated you taking the time to answer a noobs question.  Once again with a humble heart, thanks. 

The additional details are useful and it points that I may not have a full understanding of how this is working.  Can I connect to an existing server and get a block header without being part of a pool?  If I start my own pool with freeware (with just myself in it) will it know how to get block headers and my app simply sends a JSON request to a pool server on the same machine?  I'm just trying to write some code in my spare time to keep my java skills sharp.  I'm a hardware engineer and most of my code is embedded firmware.  I haven't written any JSON code since I finished my masters.  My goal is to write a miner in java(yea, you can start laughing now) just for the technical challenge.  I'm sure all those ASIC guys a shaking in their boots.

Anything is hard when you don't know how to do it.
3  Bitcoin / Development & Technical Discussion / Re: Technical question(where and how to get a block header to hash) on: November 23, 2015, 09:23:06 PM
Thanks, it's exactly what I was looking for.
4  Bitcoin / Development & Technical Discussion / Technical question(where and how to get a block header to hash) on: November 23, 2015, 09:09:14 PM
So, I've read the articles and this is interesting stuff.  I do however have some technical questions.  How and where do you get a block header?  I'm not looking for a "from the pool" answer but a more technical "connect to bla.bla.bla port blabla and send a Jason formatted packet as defined by protocol bla bla bla and parse the response as define by protocol bla bla bla.", you know technical stuff? Grin 
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!