Bitcoin Forum
January 18, 2017, 06:20:50 PM *
News: Latest stable version of Bitcoin Core: 0.13.2  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Checking block confirmation  (Read 1283 times)
fahhem
Newbie
*
Offline Offline

Activity: 10


View Profile
April 23, 2011, 05:49:44 AM
 #1

Block are generated basically at random so there is a possibility that even if I generate a block, that I might not have been the first to generate that particular block, hence the need for confirmations. However, how can I programmatically check if I generated block number X?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
[Tycho]
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
April 23, 2011, 07:19:32 AM
 #2

Block are generated basically at random so there is a possibility that even if I generate a block, that I might not have been the first to generate that particular block, hence the need for confirmations. However, how can I programmatically check if I generated block number X?
You can compare your hash with the hash of that block in the active block chain.

Welcome to my bitcoin mining pool: https://deepbit.net - Both payment schemes (including PPS), instant payout, no invalid blocks !
ICBIT Trading platform : USD/BTC futures trading, Bitcoin difficulty futures (NEW!). Third year in bitcoin business.
fahhem
Newbie
*
Offline Offline

Activity: 10


View Profile
April 23, 2011, 09:46:23 AM
 #3

How would I get the hash for that block? I don't see any RPC methods for that, would I need a modified bitcoind?
dbitcoin
Hero Member
*****
Offline Offline

Activity: 742

BTCDig - mining pool


View Profile WWW
April 23, 2011, 10:57:15 AM
 #4

How would I get the hash for that block? I don't see any RPC methods for that, would I need a modified bitcoind?
yep, search pacthes from jgarzik and build custom bitcoind from sources.

BTCDig - mining pool (Stratum, VarDiff, DGM, SSL, JSON API)
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!