Bitcoin Forum
May 06, 2024, 09:30:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: proposal: delete blocks older than 1000  (Read 2654 times)
hennessyhemp (OP)
Hero Member
*****
Offline Offline

Activity: 511
Merit: 500


Hempire Loading...


View Profile WWW
July 10, 2013, 12:43:20 PM
 #1

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

Please add more BTC here (my son will apprecciate it when he's older): 14WsxbeRcgsSYZyNSRJqEAmB1MKAzHhsCT
1714987805
Hero Member
*
Offline Offline

Posts: 1714987805

View Profile Personal Message (Offline)

Ignore
1714987805
Reply with quote  #2

1714987805
Report to moderator
1714987805
Hero Member
*
Offline Offline

Posts: 1714987805

View Profile Personal Message (Offline)

Ignore
1714987805
Reply with quote  #2

1714987805
Report to moderator
1714987805
Hero Member
*
Offline Offline

Posts: 1714987805

View Profile Personal Message (Offline)

Ignore
1714987805
Reply with quote  #2

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

Activity: 575
Merit: 500


The North Remembers


View Profile WWW
July 10, 2013, 12:44:27 PM
 #2

Pruning is in the works I believe.

Bitcoin Auction House http://www.BitBid.net BTC - 1EwfBVC6BwA6YeqcYZmm3htwykK3MStW6N | LTC - LdBpJJHj4WSAsUqaTbwyJQFiG1tVjo4Uys Don't get Goxed.
Birdy
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
July 10, 2013, 01:25:07 PM
 #3

You cannot just delete old blocks, there may still be unspent coins in there.
I think you could analyse it and only use those with actual coins in it though, so that the old blockchain could be compressed.
franky1
Legendary
*
Offline Offline

Activity: 4214
Merit: 4473



View Profile
July 10, 2013, 01:26:00 PM
 #4

the problem is that hoarders still have coins in very old blocks. so pruning will only work on blocks where every single transaction is 'spent'

edit:  Grin birdy beat me to the punchline of how simply removing x amount of blocks wont work

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
Birdy
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
July 10, 2013, 01:38:08 PM
 #5

the problem is that hoarders still have coins in very old blocks. so pruning will only work on blocks where every single transaction is 'spent'

edit:  Grin birdy beat me to the punchline of how simply removing x amount of blocks wont work

The early bird catches the worm punchline Smiley
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
July 10, 2013, 03:29:56 PM
 #6

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

Learn more about how a system works before you start guessing at ways to "improve" it.  Otherwise, your guesses aren't likely to make very much sense.

I propose reducing the energy released in a fission reaction.  This will keep the temperature of the reaction down, and make nuclear energy far safer.  The only problem is if there isn't enough energy released to be cost effective.
dirtscience
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
July 10, 2013, 03:31:41 PM
 #7

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

I support this idea fully.
bigbeninlondon
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile
July 10, 2013, 06:39:14 PM
 #8

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

What if the last transaction to my wallet was 2000 blocks ago?  Remember that 2016 blocks are mined every two weeks.  So if I had a transaction over 2 weeks old I'm SOL?
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1009



View Profile
July 10, 2013, 06:58:00 PM
 #9

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

Learn more about how a system works before you start guessing at ways to "improve" it.  Otherwise, your guesses aren't likely to make very much sense.

I propose reducing the energy released in a fission reaction.  This will keep the temperature of the reaction down, and make nuclear energy far safer.  The only problem is if there isn't enough energy released to be cost effective.
I think you're on to something here. I propose a lower value for the gravitational constant to make space travel more efficient. Let's start a petition on change.org.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 10, 2013, 08:30:28 PM
 #10

We better make the speed of light higher so that optic fibers can allow much faster data transfers

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
wiggi
Sr. Member
****
Offline Offline

Activity: 403
Merit: 251


View Profile
July 10, 2013, 09:14:49 PM
 #11

the problem is that hoarders still have coins in very old blocks. so pruning will only work on blocks where every single transaction is 'spent'

Won't help with hoarders in very old blocks but... the one transaction that makes an entire block 'spent',
or rather the last x transactions for each block, could get incentivized.

Like, another free 27kb/block reserved only for these transactions. Easy and painless soft fork.

Or even a small negative fee. Would miners do this? (for the greater good)  Roll Eyes
solex
Legendary
*
Offline Offline

Activity: 1078
Merit: 1002


100 satoshis -> ISO code


View Profile
July 10, 2013, 09:26:48 PM
 #12

I propose deleting all but the last 1000 blocks. this will keep the blockchain small and lean. as blocks build upon each other, older blocks are not needed. The only problem with this is if  there is a 1001 block chain fork which shoudl not happen.

Learn more about how a system works before you start guessing at ways to "improve" it.  Otherwise, your guesses aren't likely to make very much sense.

I propose reducing the energy released in a fission reaction.  This will keep the temperature of the reaction down, and make nuclear energy far safer.  The only problem is if there isn't enough energy released to be cost effective.

Agreed. I also propose redesigning 3-stage rockets so that the top two stages carry payload and only the bottom stage carries fuel. That way twice as much could be carried into orbit for half the fuel. I am surprised it wasn't done like that for the manned space program.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
July 10, 2013, 10:21:55 PM
 #13

Agreed. I also propose redesigning 3-stage rockets so that the top two stages carry payload and only the bottom stage carries fuel. That way twice as much could be carried into orbit for half the fuel. I am surprised it wasn't done like that for the manned space program.
We better make the speed of light higher so that optic fibers can allow much faster data transfers
I think we can achieve both of these by first making space-time riemannian instead of Pseudo-Riemannian. With euclidean space-time there should be no need for pesky limits like a constant speed of light, and the extra payload mass should be offset-able by simply moving some of the fuel you didn't need into the past.

ObOntopic:  While not all nodes need to constantly store the complete history— it is not so simple as waving some hands and saying "just keep X blocks": access to historical data is important to Bitcoin's security model. Otherwise miners could invent coins out of thin air or steal coins and later-attaching nodes would know nothing about it, and couldn't prevent.   There is a careful balancing of motivations here: part of the reason someone doesn't amass a bunch of computing power to attack the system is because of how little they can get away with if they try.
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
July 12, 2013, 06:11:23 PM
 #14

I propose that we make P = NP. 

Oh wait, then we have a real problem.  :-)


Agreed. I also propose redesigning 3-stage rockets so that the top two stages carry payload and only the bottom stage carries fuel. That way twice as much could be carried into orbit for half the fuel. I am surprised it wasn't done like that for the manned space program.
We better make the speed of light higher so that optic fibers can allow much faster data transfers
I think we can achieve both of these by first making space-time riemannian instead of Pseudo-Riemannian. With euclidean space-time there should be no need for pesky limits like a constant speed of light, and the extra payload mass should be offset-able by simply moving some of the fuel you didn't need into the past.

ObOntopic:  While not all nodes need to constantly store the complete history— it is not so simple as waving some hands and saying "just keep X blocks": access to historical data is important to Bitcoin's security model. Otherwise miners could invent coins out of thin air or steal coins and later-attaching nodes would know nothing about it, and couldn't prevent.   There is a careful balancing of motivations here: part of the reason someone doesn't amass a bunch of computing power to attack the system is because of how little they can get away with if they try.

hennessyhemp (OP)
Hero Member
*****
Offline Offline

Activity: 511
Merit: 500


Hempire Loading...


View Profile WWW
July 12, 2013, 09:46:44 PM
 #15

This was a very odd account hack...this guy made posts like this in my name all day yesterday...I hope no one was scammed.

bastard.

Please add more BTC here (my son will apprecciate it when he's older): 14WsxbeRcgsSYZyNSRJqEAmB1MKAzHhsCT
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
July 13, 2013, 09:11:06 PM
 #16

This was a very odd account hack...this guy made posts like this in my name all day yesterday...I hope no one was scammed.

bastard.

This reminded me Fight Club...
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
July 14, 2013, 07:08:00 PM
 #17

Deleting old blocks is perfectly possible - this was a design goal when the 0.8 database changes (called "ultraprune" for a reason, back then) were developed.

Old transactions are not affected, as the set of unspent transaction outputs is maintained separately from the block database. Their unspent outputs remain in the database, even if the block that contained the transaction itself isn't anymore.

The reason this is not yet implemented, is because we first need to make some protocol changes to help new nodes that start up find peers to download the blockchain from. If a majority of nodes goes to delete their old blocks, they'd have a very hard time finding a peer that still has those blocks otherwise.

I do Bitcoin stuff.
TierNolan
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
July 14, 2013, 09:59:46 PM
 #18

The reason this is not yet implemented, is because we first need to make some protocol changes to help new nodes that start up find peers to download the blockchain from. If a majority of nodes goes to delete their old blocks, they'd have a very hard time finding a peer that still has those blocks otherwise.

I think the proposal to use bittorrent for that is best.  A tracker could be started for the blockchain state every 10k blocks.

Does bittorrent do merkle-like hashing?  I sounds like it just is a list of hashes per piece?

The file could be defined to exclude all orphans.  This gives a consistent target for each tracker.

Since all blocks that are included in the snapshot have 10k confirms, it would be clear which blocks are orphans by the time the tracker is created.

You could add the sha256 hash of the blockchain from 0 to 229999 (excluding orphans) into the coinbase for block 235000.  To save coinbase space you could spread it out over multiple blocks.

This gives miners 5000 blocks to compute the next hash.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
July 14, 2013, 11:09:56 PM
 #19

I think the proposal to use bittorrent for that is best.  A tracker could be started for the blockchain state every 10k blocks.
Our effort to use a trackerless torrent was a failure— it was basically unusable. So you'd be introducing a critical path point of failure both at the trackers and in the torrent files.  Beyond that, even with the infrequently updated bootstrap we only get a handful of seeds, I can't imagine _more_ frequent torrents improving that.  Now multiply that with the fact that bittorrent is another network facing protocol with similar software complexity to the whole of the Bitcoin reference software, and one with a less impressive security history, so anyone that participates in that is increasing their security critical surface area. Then exponentiate that by the fact that bittorrent is _forbidden_ on many networks both because massively parallel TCP connections are hostile to the network (use an unfair share of capacity) and the associations with illicit file transfer, and even where it isn't outright forbidden it often gets detected by IDS and can draw unwanted adverse attention. The association of IRC and Botnets (and the resulting blocking and confused "you've been hacked" warnings from network admins) is one of the reasons we removed the original IRC introduction method.

Providing the data necessary for the operation of the network is something the network ought to do. It provides a 1:1 mapping between interesting parties and available parties. It also makes some kind of attack resistance easier because Bitcoin software can actually validate the information without any centrally controlled official torrents, whereas using torrent would ignore all the special structure our data has that makes dos attacking difficult.

I believe that using bittorrent for this is unnecessary, that using it as a primary method (as opposed to a backup or alternative option) would be bad and dangerous.  Also, you're a bad bad person for proposing it, and you smell too. Tongue (no, not really. But I'm finding it a little difficult to state how throughly bad I think that idea is without being gratuitously insulting— it's not intended that way, and it's nothing personal. Perhaps some awkward humor will help? Smiley).
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1009



View Profile
July 14, 2013, 11:20:34 PM
 #20

The Freenet project has managed to create a 30+ terabyte distributed, redundant, content-addressed filesystem. It works in a plug-and-play fashion, where individual nodes specialize with regards to routing and as to which keys they choose to store automatically without requiring any explicit configuration. Nodes can enter and leave the network randomly without having much of an impact on key retrievablity.

Their design would be a good starting point for building a distributed datastore for Bitcoin. All the objects that we care about are already identified by their hashes, so it would be easy to adapt their storage model for Bitcoin.
Pages: [1] 2 »  All
  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!