1

The standard bitcoind/bitcoin-qt client lets you ask for the highest known block, via RPC, or get notifications when a new 'best block' is locally acknowledged (via the -blocknotify option).

But, is there any way to tell when more than one equally-high blocks are circulating, and thus it's not yet clear which will win? Or does the standard client remain locked onto only the first block it receives, until it receives a definitively-longer chain?

  • I don't think the block height on it's own is sufficient information. You would probably need to examine the hashes, nonces and merkle, from different peers. – T9b Feb 17 '14 at 18:58
  • Even if you write the code for that you will probably want at least two instances running in antipodal points so the information that is propagated to them will be slightly different at these times of competing best-blocks. – George Kimionis Mar 22 '14 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.