Bitcoin Forum
May 06, 2024, 09:20:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Checking block confirmation  (Read 1505 times)
fahhem (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


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?
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715030445
Hero Member
*
Offline Offline

Posts: 1715030445

View Profile Personal Message (Offline)

Ignore
1715030445
Reply with quote  #2

1715030445
Report to moderator
1715030445
Hero Member
*
Offline Offline

Posts: 1715030445

View Profile Personal Message (Offline)

Ignore
1715030445
Reply with quote  #2

1715030445
Report to moderator
1715030445
Hero Member
*
Offline Offline

Posts: 1715030445

View Profile Personal Message (Offline)

Ignore
1715030445
Reply with quote  #2

1715030445
Report to moderator
[Tycho]
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



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 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


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
Merit: 500

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:  

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