Bitcoin Forum
December 08, 2016, 12:03:39 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: blocks minus 1  (Read 2035 times)
satoshi
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364


View Profile
August 16, 2010, 03:59:25 PM
 #1

I'd like to reduce the number of blocks displayed in the status bar by 1.   When you first load the program, it'll display 0 blocks instead of 1:
"0 connections    0 blocks     0 transactions"

It's always been "nBestHeight + 1" because it's counting the genesis block.  Technically, yes, the genesis block is a block.  It's a hardcoded block that you start out with.  You can't not have the genesis block.  Maybe think of it as a reference coin that you measure other coins against.  The block count people are looking for is the number of blocks they've downloaded.

The main benefit is that blocks will be equal to the block number of the current best block.  If blocks is 10, then the highest block number you have is 10.  It means you have block 10 and you don't have block 11.

It would reduce the confusion we had here:

... It already is on block 74638. I assume that means that block is now a good one?

I had some confusion on this myself and got clarification in #bitcoin-dev:

The bad block was number 74638, the last good one was 74637.  The numbers start at 0, so when your client shows there are 74638 blocks then that means you have up to block number 74637, the last good one.
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
1481198619
Hero Member
*
Offline Offline

Posts: 1481198619

View Profile Personal Message (Offline)

Ignore
1481198619
Reply with quote  #2

1481198619
Report to moderator
ByteCoin
Sr. Member
****
expert
Offline Offline

Activity: 416


View Profile
August 16, 2010, 04:04:48 PM
 #2

Agreed. Seems like a change for the better.
Tilka
Newbie
*
Offline Offline

Activity: 11



View Profile
August 16, 2010, 04:34:24 PM
 #3

+1

Offtopic: Does this forum have some kind of upvote plugin or something?
Insti
Sr. Member
****
Offline Offline

Activity: 294


Firstbits: 1duzy


View Profile
August 16, 2010, 04:54:51 PM
 #4

+1
+1

Quote
Offtopic: Does this forum have some kind of upvote plugin or something?
+1
satoshi
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364


View Profile
August 16, 2010, 05:06:27 PM
 #5

Done in SVN rev 137
kencausey
Newbie
*
Offline Offline

Activity: 15


View Profile
August 16, 2010, 05:12:08 PM
 #6

Rather than changing the counting scheme why not simply refer to the latest block rather than the count of blocks.

  74741 blocks

versus

  Latest block: 74740

eliminating the need to change the counting scheme and requiring many to adjust their thinking.

BC: 1PZdDFSKj2wt1GW6XCQxHH8RUYTV7fHF6n
nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
August 16, 2010, 06:04:52 PM
 #7

Rather than changing the counting scheme why not simply refer to the latest block rather than the count of blocks.

  74741 blocks

versus

  Latest block: 74740

eliminating the need to change the counting scheme and requiring many to adjust their thinking.

From my own experience, a change commited will always make some happier than other, but in the end everyone will get used to it, whereas reverting a change that is already in and doing one more change to copy with the reason why the reverted change was initially submitted will just make everyone confused. Proof of that is the phrase I just wrote down!
Tilka
Newbie
*
Offline Offline

Activity: 11



View Profile
August 17, 2010, 11:06:10 PM
 #8

Latest block: 74740
So instead of

0 connections    0 blocks     0 transactions

it would be

0 connections    Latest block: 0     0 transactions

That just doesn't look right.

I think the way Satoshi explained it makes the most sense: the genesis block may be technically a block but inside the chain it's nothing more than a reference point.
It's like the zero for numbers. The zero of course is a number itself but when counting something it's just a reference point. Well, at least humans count like that Tongue
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!