Bitcoin Forum
December 11, 2016, 08:29:06 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Checking block confirmation  (Read 1281 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.
1481444946
Hero Member
*
Offline Offline

Posts: 1481444946

View Profile Personal Message (Offline)

Ignore
1481444946
Reply with quote  #2

1481444946
Report to moderator
[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!