Bitcoin Forum
May 17, 2024, 04:56:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can block height change ?  (Read 3605 times)
upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 02, 2014, 09:20:46 PM
 #1

When I register the block height of a transaction with the following API, does that remain fixed forever ?

https://blockchain.info/rawtx/txHash

...and one more thing. I was checking this : http://blockexplorer.com/q/getblockhash/273824 ...It used to return a proper block hash a few days ago. Now it says the following. Why so ?

ERROR: unknown (Most likely my bitcoind stopped working or this page is too large/complex.)
yogi
Legendary
*
Offline Offline

Activity: 947
Merit: 1042


Hamster ate my bitcoin


View Profile
January 02, 2014, 09:26:23 PM
 #2

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 02, 2014, 09:57:58 PM
 #3

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

I mean I was doing some calculation on the following transaction taking it as a reference.

https://blockchain.info/rawtx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

As far as I can remember, the block height I registered for this transaction was 273824. But now it seems, its block height is 266559 !!! So, I am confused, if it is my mistake or block height can change with time !!!
yogi
Legendary
*
Offline Offline

Activity: 947
Merit: 1042


Hamster ate my bitcoin


View Profile
January 02, 2014, 10:19:52 PM
 #4

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

I mean I was doing some calculation on the following transaction taking it as a reference.

https://blockchain.info/rawtx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

As far as I can remember, the block height I registered for this transaction was 273824. But now it seems, its block height is 266559 !!! So, I am confused, if it is my mistake or block height can change with time !!!

What do you mean when you say 'block height I registered'?

You can not specify what height your transaction is in the block. It is up to the miner to include your transaction, or not.


upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 02, 2014, 10:28:20 PM
 #5

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

I mean I was doing some calculation on the following transaction taking it as a reference.

https://blockchain.info/rawtx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

As far as I can remember, the block height I registered for this transaction was 273824. But now it seems, its block height is 266559 !!! So, I am confused, if it is my mistake or block height can change with time !!!

What do you mean when you say 'block height I registered'?

You can not specify what height your transaction is in the block. It is up to the miner to include your transaction, or not.




registered means I noted down that value.
yogi
Legendary
*
Offline Offline

Activity: 947
Merit: 1042


Hamster ate my bitcoin


View Profile
January 02, 2014, 10:39:00 PM
 #6

registered means I noted down that value.

Ah, ok.

While not impossible it is highly improbable that the block height of that transaction change by such a degree. A much more likely scenario is that the original number was erroneous.

upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 03, 2014, 09:49:32 AM
 #7

registered means I noted down that value.

Ah, ok.

While not impossible it is highly improbable that the block height of that transaction change by such a degree. A much more likely scenario is that the original number was erroneous.

OMG !!! Does it happen in Bitcoin protocol ? The block height can change !!! OOOPS.

Neways, can u plz tell me why this is happening ?

I was checking this : http://blockexplorer.com/q/getblockhash/273824 ...It used to return a proper block hash a few days ago. Now it says the following. Why so ?

Code:
ERROR: unknown (Most likely my bitcoind stopped working or this page is too large/complex.)
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 03, 2014, 10:37:32 AM
 #8

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

I mean I was doing some calculation on the following transaction taking it as a reference.

https://blockchain.info/rawtx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

As far as I can remember, the block height I registered for this transaction was 273824. But now it seems, its block height is 266559 !!! So, I am confused, if it is my mistake or block height can change with time !!!

By 'block height' do you mean 'block length'?
upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 03, 2014, 12:50:33 PM
 #9

Not sure what you mean by 'register the block height of a transaction', but the likelihood of a block being orphaned becomes exponentially more improbable the deeper it is in the chain.

I mean I was doing some calculation on the following transaction taking it as a reference.

https://blockchain.info/rawtx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

As far as I can remember, the block height I registered for this transaction was 273824. But now it seems, its block height is 266559 !!! So, I am confused, if it is my mistake or block height can change with time !!!

By 'block height' do you mean 'block length'?

I am not sure what is 'block length', but in the link mentioned above blockchain.info returns a value against block_height, which if I deduct from current main chain block height (https://blockchain.info/q/getblockcount), returns the no. of confirmations.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
January 04, 2014, 12:35:05 AM
 #10

Most of the blockexplorer.com "q" links like the OP, and other functions such as transaction hash lookup, are not working, likely for the exact reason it told you: Most likely my bitcoind stopped working.

The information in the other links is not contained in the blockchain, it is all derived information from the database that blockchain.info runs, including the comments. In addition, the numbers in that URL are internal database numbers that do not correspond with the actual block height, as orphaned blocks also are given numbers.

The transaction you reference can be seen here: https://blockchain.info/tx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

It was included in network block 266559.
upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
January 04, 2014, 11:11:57 AM
 #11

Most of the blockexplorer.com "q" links like the OP, and other functions such as transaction hash lookup, are not working, likely for the exact reason it told you: Most likely my bitcoind stopped working.

The information in the other links is not contained in the blockchain, it is all derived information from the database that blockchain.info runs, including the comments. In addition, the numbers in that URL are internal database numbers that do not correspond with the actual block height, as orphaned blocks also are given numbers.

The transaction you reference can be seen here: https://blockchain.info/tx/114f37f3e30c7d9b5d5339e9a1652f2f065d0413fe34ee1121de0f21a50aaed3

It was included in network block 266559.

So, does it mean, the values we see on blockchain.info, e.g. no. of confirmations, are not reliable ?
sidazhang
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
January 06, 2014, 06:35:35 AM
 #12

registered means I noted down that value.

Ah, ok.

While not impossible it is highly improbable that the block height of that transaction change by such a degree. A much more likely scenario is that the original number was erroneous.

OMG !!! Does it happen in Bitcoin protocol ? The block height can change !!! OOOPS.

Neways, can u plz tell me why this is happening ?

I was checking this : http://blockexplorer.com/q/getblockhash/273824 ...It used to return a proper block hash a few days ago. Now it says the following. Why so ?

Code:
ERROR: unknown (Most likely my bitcoind stopped working or this page is too large/complex.)

Probably a bug in in blockexplorer
blockchain info endpoint is just fine
https://blockchain.info/block-height/273824
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!