Bitcoin Forum
April 19, 2024, 11:52:11 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blkindex.dat  (Read 11517 times)
andy_3_913 (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
July 21, 2010, 04:40:06 PM
 #1

just curious,
the blkindex.dat on my pc is currently 28256 kb.
according to bc, the number of blocks=69456.
i'm assuming the blkindex.dat file will continue to grow?
how big is this likely to get.

1713527531
Hero Member
*
Offline Offline

Posts: 1713527531

View Profile Personal Message (Offline)

Ignore
1713527531
Reply with quote  #2

1713527531
Report to moderator
1713527531
Hero Member
*
Offline Offline

Posts: 1713527531

View Profile Personal Message (Offline)

Ignore
1713527531
Reply with quote  #2

1713527531
Report to moderator
1713527531
Hero Member
*
Offline Offline

Posts: 1713527531

View Profile Personal Message (Offline)

Ignore
1713527531
Reply with quote  #2

1713527531
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Quantumplation
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 21, 2010, 05:00:23 PM
 #2

As of right now, if blkindex is where the blocks are stored, then the file will grow infinitely large over infinite time.

NOTE: This account was compromised from 2017 to 2021.  I'm in the process of deleting posts not made by me.
andy_3_913 (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
July 21, 2010, 05:31:21 PM
 #3

As of right now, if blkindex is where the blocks are stored, then the file will grow infinitely large over infinite time.

scarey biccies!!  Grin

seriously, there must be some limit as to how large it will get?
Quantumplation
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 21, 2010, 05:33:39 PM
 #4

Yup, until the last bitcoin user stops using the service, or some other "shutdown condition", the file will continue to grow as new blocks are generated roughly ever 10 minutes.  If we were to stop generating blocks at some point, we would stop being able to perform transactions.

(Granted, I'm not 100% sure that this is where the blocks are stored, but I'm assuming it is.)

NOTE: This account was compromised from 2017 to 2021.  I'm in the process of deleting posts not made by me.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 21, 2010, 09:03:32 PM
 #5

just curious,
the blkindex.dat on my pc is currently 28256 kb.
according to bc, the number of blocks=69456.
i'm assuming the blkindex.dat file will continue to grow?
how big is this likely to get.

Take a size reading at a certain block size, wait a few blocks, check the size again, and then some linear math to take a guess at how big it would get. I did that in another thread somewhere on this board, basically came up with a number like 348MB once every coin was generated.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Quantumplation
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 21, 2010, 10:42:17 PM
 #6

knightmb: Blocks continue to get generated even after all the coins have been "minted".  Also, each block varies in size based on how many transactions occur in that span of time, so yours would only be a rough estimate.

NOTE: This account was compromised from 2017 to 2021.  I'm in the process of deleting posts not made by me.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 21, 2010, 11:18:56 PM
Last edit: July 25, 2010, 06:38:55 PM by knightmb
 #7

knightmb: Blocks continue to get generated even after all the coins have been "minted".  Also, each block varies in size based on how many transactions occur in that span of time, so yours would only be a rough estimate.
Yes, very rough estimate for the all the 21 million coins, so I remember seeing somewhere about how long it would take to generate them all. It put it at least a century into the future, so 350+MB might be small potato 100 years from now for both desktop and mobile devices.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Quantumplation
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 21, 2010, 11:48:51 PM
 #8

But it'd still continue to grow after the 21 million coins.

NOTE: This account was compromised from 2017 to 2021.  I'm in the process of deleting posts not made by me.
lachesis
Full Member
***
Offline Offline

Activity: 210
Merit: 104


View Profile
July 23, 2010, 01:39:49 AM
Last edit: July 23, 2010, 01:52:17 AM by lachesis
 #9

Generation never "stops" - the number of coins generated gets halved every 210,240 blocks (4 years). It will take somewhere around 17.5 years from block 0 to generate 20 million coins. The next 1.024 million will never be completely generated. Generation won't "stop" until the number of coins generated per block is less than 10^-8 (minimum precision of Bitcoin). That will happen somewhere around block 6.76*10^6, or roughly 130years in the future.

Bitcoin has a Merkle Tree implementation that allows old block transactions to be purged or something like that. Read the design paper, it's all a little above my head.

Besides, in 10 years our phones will all have a terabyte of storage and our desktops will have god knows how much.

Bitcoin Calculator | Scallion | GPG Key | WoT Rating | 1QGacAtYA7E8V3BAiM7sgvLg7PZHk5WnYc
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
July 23, 2010, 02:17:45 AM
 #10

Generation never "stops" - the number of coins generated gets halved every 210,240 blocks (4 years). It will take somewhere around 17.5 years from block 0 to generate 20 million coins. The next 1.024 million will never be completely generated. Generation won't "stop" until the number of coins generated per block is less than 10^-8 (minimum precision of Bitcoin). That will happen somewhere around block 6.76*10^6, or roughly 130years in the future.

Bitcoin has a Merkle Tree implementation that allows old block transactions to be purged or something like that. Read the design paper, it's all a little above my head.

Besides, in 10 years our phones will all have a terabyte of storage and our desktops will have god knows how much.

It will stop. The halving is done as a bitwise right shift instead of division, so the number of coins awarded will eventually be 0. Block #6,929,999 will be the last one to produce coins. This should happen around 2140.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
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!