Bitcoin Forum
May 02, 2024, 06:15:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-qt huge blocks file  (Read 4731 times)
spudy12 (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile WWW
October 10, 2013, 06:18:55 PM
 #1

Is there anything I can do about the huge file size of the blocks folder in app data? It is currently 12gb?!
Is it okay to delete them or do I have to do something else?
1714630557
Hero Member
*
Offline Offline

Posts: 1714630557

View Profile Personal Message (Offline)

Ignore
1714630557
Reply with quote  #2

1714630557
Report to moderator
1714630557
Hero Member
*
Offline Offline

Posts: 1714630557

View Profile Personal Message (Offline)

Ignore
1714630557
Reply with quote  #2

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

Posts: 1714630557

View Profile Personal Message (Offline)

Ignore
1714630557
Reply with quote  #2

1714630557
Report to moderator
1714630557
Hero Member
*
Offline Offline

Posts: 1714630557

View Profile Personal Message (Offline)

Ignore
1714630557
Reply with quote  #2

1714630557
Report to moderator
briehost
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile WWW
October 10, 2013, 06:29:44 PM
 #2

You can use a web wallet such as electrum or blockchain.info, however these 12gb represent all the block headers as well as all unspent transactions. The Satoshi/original client no longer saves spent transaction details so at least it is not as large as it could be Wink

If you delete this folder you will have to download and verify every transaction again next time you open bitcoin-qt

To brie or not to brie...
spudy12 (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile WWW
October 10, 2013, 06:34:10 PM
 #3

If I  were to delete all these and re download them ( I know this would take a long time but thats not an issue) would the overall size be smaller?
briehost
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile WWW
October 10, 2013, 06:54:02 PM
 #4

It would be bigger than it is now, since new blocks are found every 10 minutes (or more quickly due to hash rate increases)

Ultimately you would end up with a wallet the same size as if you had not done this, and you would also be using much more of your bandwidth, as well as others' since they have to send you the blockchain again.

Running bitcoin-qt helps secure the network and keep it decentralized by providing an extra layer of transaction and block validation, as well as rebroadcasting, even if you are not mining. It is also the best way to verify a payment has really been sent to you, since it verifies all transactions against previous transactions/generation, while a web wallet or block explorer generally gives you info from a database which could be modified to include false transactions.

If you simply can not keep this much data on your hard drive then the only route to go (if you are using your wallet every day) is to have a web wallet. I am not saying that any of these web wallet services are or are not secure, or that they do not work well. But both you and the rest of the network are better off if you run a full node.

You can keep a paper wallet or an encrypted wallet.dat file if you are simply buying and holding bitcoin or do not spend them that regularly.

To brie or not to brie...
spudy12 (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile WWW
October 10, 2013, 07:07:26 PM
 #5

okay, is there a way I can move this data off of my main SSD on the a secondary drive?
 I am all for helping the network, Just need it off my SSD! haha
briehost
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile WWW
October 10, 2013, 07:11:43 PM
 #6

okay, is there a way I can move this data off of my main SSD on the a secondary drive?
 I am all for helping the network, Just need it off my SSD! haha

Oh yes, with SSD I can see how you'd want to save those 12gb for something else!

EDIT: Use the -datadir option.
Right-click on your bitcoin-qt shortcut, press properties, and add -datadir=D:\Bitcoin
Go make that directory, then run bitcoin. If a bunch of files show up in there, you've done it correctly.

Found here: http://bitcoin.stackexchange.com/questions/9259/bitcoin-qt-setup-change-block-chain-file-location-settings-documentation

To brie or not to brie...
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
October 10, 2013, 07:59:10 PM
 #7

these 12gb represent all the block headers as well as all unspent transactions. The Satoshi/original client no longer saves spent transaction details so at least it is not as large as it could be Wink

This is untrue. The reference client saves the raw blockchain on disk, which contain all blocks and therefore all transactions. Some orphan blocks are saved too, since the program doesn't learn they are orphans until too late. However it doesn't keep an index into transactions, which means you can't ask your client about arbitrary transactions—but they exist on disk nevertheless. The parameter -txindex controls this indexing and is 0 by default.
briehost
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile WWW
October 10, 2013, 08:54:48 PM
 #8

these 12gb represent all the block headers as well as all unspent transactions. The Satoshi/original client no longer saves spent transaction details so at least it is not as large as it could be Wink

This is untrue. The reference client saves the raw blockchain on disk, which contain all blocks and therefore all transactions. Some orphan blocks are saved too, since the program doesn't learn they are orphans until too late. However it doesn't keep an index into transactions, which means you can't ask your client about arbitrary transactions—but they exist on disk nevertheless. The parameter -txindex controls this indexing and is 0 by default.

Oh! I must have misread something in my research but upon further inspection it seems you are very right.

Sorry for rebroadcasting misinformation and thank you for the correction! Smiley

To brie or not to brie...
cowandtea
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
October 13, 2013, 02:37:32 AM
 #9

Is there anything I can do about the huge file size of the blocks folder in app data? It is currently 12gb?!
Is it okay to delete them or do I have to do something else?

Using online wallet is one way, but there is nothing you can do if you want to use bitcoin-qt. It will be like 1000gb after all Bitcoin have been mined so have a bigger hard disk Smiley

Leehoya
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
October 16, 2013, 03:51:53 AM
 #10

If you prefer bitcoin-qt then never delete. However, if you do not want a big file occupying your diskspace, use online wallet like blockchain and coinbase.

jlp
Sr. Member
****
Offline Offline

Activity: 266
Merit: 264


View Profile
September 27, 2014, 04:07:04 PM
 #11

The blockchain is now over 25 GB.  This seems crazy.

I need to run bitcoin on a Linux server in order to process transactions, but I have to increase the size of my server from my hosting company, just because the blockchain keeps growing.  This means over time, I will have to continue to pay more for hosting.

Isn't there any way that the core team can re-architect the blockchain so that only the most recent 10-20% of blocks need to be stored, and enable us to delete the oldest 80-90% of blocks?
fsb4000
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000



View Profile
September 27, 2014, 11:54:55 PM
 #12

We MUST store ALL BLOCKS. Do not let to steal your Bitcoins!!!!
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
September 28, 2014, 05:04:38 AM
 #13

The blockchain is now over 25 GB.  This seems crazy.

I need to run bitcoin on a Linux server in order to process transactions, but I have to increase the size of my server from my hosting company, just because the blockchain keeps growing.  This means over time, I will have to continue to pay more for hosting.

Isn't there any way that the core team can re-architect the blockchain so that only the most recent 10-20% of blocks need to be stored, and enable us to delete the oldest 80-90% of blocks?

Please don't necro old threads; it's been nearly a year since the last post relevant to the original discussion. While your question isn't without merit, you'll get better feedback by posting it as a new thread either here or in the "Development & Technical Discussion" section.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
hhanh00
Sr. Member
****
Offline Offline

Activity: 467
Merit: 266


View Profile
October 03, 2014, 12:16:11 PM
 #14

The blockchain is now over 25 GB.  This seems crazy.

I need to run bitcoin on a Linux server in order to process transactions, but I have to increase the size of my server from my hosting company, just because the blockchain keeps growing.  This means over time, I will have to continue to pay more for hosting.

Isn't there any way that the core team can re-architect the blockchain so that only the most recent 10-20% of blocks need to be stored, and enable us to delete the oldest 80-90% of blocks?

Yes it's possible. It has been discussed as an improvement for a long while. It's not implemented.
The blockchain is 27 gb. The active part is less than 800 mb.

I am working on a thin client that would use a configurable amount of space

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!