Bitcoin Forum
May 04, 2024, 01:46:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compacting/Pruning the blockchain  (Read 6586 times)
Bitsky (OP)
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


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
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714830374
Hero Member
*
Offline Offline

Posts: 1714830374

View Profile Personal Message (Offline)

Ignore
1714830374
Reply with quote  #2

1714830374
Report to moderator
1714830374
Hero Member
*
Offline Offline

Posts: 1714830374

View Profile Personal Message (Offline)

Ignore
1714830374
Reply with quote  #2

1714830374
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


Bitsky (OP)
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


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: 2506
Merit: 1010


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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


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
Merit: 250


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 (OP)
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


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
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



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.

Adblock for annoying signature ads | Enhanced Merit UI
jago25_98
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


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?

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
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!