Bitcoin Forum
December 11, 2016, 06:25:12 AM *
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: Compacting/Pruning the blockchain  (Read 6328 times)
Bitsky
Hero Member
*****
Offline Offline

Activity: 542


View Profile
April 09, 2012, 08:39:47 AM
 #1

Is there any tool around which compacts the blockchain, or prunes transactions older than x days?

My Bitcoin folder is a little over 1.5GB now, and the automatic daily backups start to get noticeable.

Also, is there a way to reduce the heavy disk I/O? It's annoying on harddrives, and it will wear down Flash based drives faster.

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481437512
Hero Member
*
Offline Offline

Posts: 1481437512

View Profile Personal Message (Offline)

Ignore
1481437512
Reply with quote  #2

1481437512
Report to moderator
1481437512
Hero Member
*
Offline Offline

Posts: 1481437512

View Profile Personal Message (Offline)

Ignore
1481437512
Reply with quote  #2

1481437512
Report to moderator
1481437512
Hero Member
*
Offline Offline

Posts: 1481437512

View Profile Personal Message (Offline)

Ignore
1481437512
Reply with quote  #2

1481437512
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2002



View Profile
April 09, 2012, 08:55:56 AM
 #2

Also, is there a way to reduce the heavy disk I/O? It's annoying on harddrives, and it will wear down Flash based drives faster.

Are you running the latest (0.6)?  It has improvements with regard to the database.

Bitsky
Hero Member
*****
Offline Offline

Activity: 542


View Profile
April 09, 2012, 09:32:14 AM
 #3

Are you running the latest (0.6)?  It has improvements with regard to the database.
Not on the server in my Lan which has the client running. It still runs on W2k, and the new versions don't work on that anymore sadly.

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2002



View Profile
April 09, 2012, 05:36:40 PM
 #4

Not on the server in my Lan which has the client running. It still runs on W2k, and the new versions don't work on that anymore sadly.
 [emphasis added]

Windows 2000's Security Model (after mainstream support ended in 2005 and extended support ended in 2010)



 - http://support.microsoft.com/lifecycle/?LN=en-us&x=7&y=9&p1=7274

I understand that upgrading hardware and operating systems is expensive but why make it worse by adding hosting a bitcoin node as one of the functions that this server performs?

Hopefully you aren't storing more than two bitcoins on that box.

DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
April 09, 2012, 06:00:02 PM
 #5

To answer you question there are no tools yet to support pruning the blockchain.

One thing to be aware if you can't just prune tx older than x days.  You can only prune tx which have been "spent" (used as an input in some subsequent tx).

The oldest spendable coinbase reward has never been spent (block #1, due to a bug the genesis block can never be spent).  If you pruned that tx and tomorrow someone used it in a tx your node wouldn't be able to validate that tx.  Worse it would consider that tx invalid and thus the block that includes it invalid too.   By incorrectly invalidating that block (and every block built on top of it) your node would be forked from the main chain forever.

Simple version:
No and even if/when they exist you will only be able to prune spent outputs.
pc
Sr. Member
****
Offline Offline

Activity: 253


View Profile
April 09, 2012, 06:33:12 PM
 #6

My Bitcoin folder is a little over 1.5GB now, and the automatic daily backups start to get noticeable.

This doesn't quite answer your question, but you only need to back up the wallet.dat file, which should be quite small. The rest could be downloaded again from the network if lost.
Bitsky
Hero Member
*****
Offline Offline

Activity: 542


View Profile
April 09, 2012, 08:25:11 PM
 #7

I understand that upgrading hardware and operating systems is expensive but why make it worse by adding hosting a bitcoin node as one of the functions that this server performs?

Hopefully you aren't storing more than two bitcoins on that box.
I know I should, but I just don't have the time to migrate everything to a new system. With some luck I can do it in my next vacation.

Simple version:
No and even if/when they exist you will only be able to prune spent outputs.
Even that would compact the blockchain nicely.

This doesn't quite answer your question, but you only need to back up the wallet.dat file, which should be quite small. The rest could be downloaded again from the network if lost.
True, but it would take really long for me, so adding the blockchain to the backup is the fastet restore option.

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
grue
Global Moderator
Legendary
*
Offline Offline

Activity: 1932



View Profile
April 09, 2012, 09:09:46 PM
 #8

I understand that upgrading hardware and operating systems is expensive but why make it worse by adding hosting a bitcoin node as one of the functions that this server performs?

Hopefully you aren't storing more than two bitcoins on that box.
I know I should, but I just don't have the time to migrate everything to a new system. With some luck I can do it in my next vacation.

Simple version:
No and even if/when they exist you will only be able to prune spent outputs.
Even that would compact the blockchain nicely.

This doesn't quite answer your question, but you only need to back up the wallet.dat file, which should be quite small. The rest could be downloaded again from the network if lost.
True, but it would take really long for me, so adding the blockchain to the backup is the fastet restore option.
since the blockchain isn't really important, you can just keep 1 copy for backup, or make a backup every 2 weeks. even then, it will only take about 10 minutes to catch up.

It is pitch black. You are likely to be eaten by a grue.

Tired of annoying signature ads? Ad block for signatures
jago25_98
Hero Member
*****
Offline Offline

Activity: 871


http://moneybutnofixedabode.blogspot.com


View Profile WWW
April 12, 2012, 03:32:07 AM
 #9

stick it on a drop box and mound the drop box, or a similar cloud solution, like box.net

would be good to do this with just the older part of the file. switch to electrum?
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!