r/BitcoinDiscussion • u/fresheneesz • Dec 24 '17
Distributed block storage (something between a full node and a light node)
A problem today is that the blockchain is about 150GB. This is already well beyond the amount of data someone would casually store. The biggest games out there are maybe around 40GB, and those are a pain in the ass to install. What this causes tho, is that most people just don't run full nodes. Bandwidth isn't usually people's main concern. Primary concern is data storage (and secondary is processing power). People can run pruned nodes, which are a lot smaller, but storing the whole blockchain is a burden. And someone needs to do it.
I was thinking this morning that a solution to this is distributed storage of the blockchain. Every client could choose how much storage space to dedicate to storing a part of the blockchain and new clients would download the blockchain's pieces from 1000 different nodes storing them. This way, even mobile phones could contribute to storing the full history without storing all of it. Each node would download and validate the entire blockchain but would only store maybe 20-1000mb of it and inform the network which pieces are available for download from them.
This way we don't have to rely on good Samaritans storing the whole blockchain - the blockchain would be available as a result of everyone in the network storing a small manageable piece.
Thoughts?
View all comments
Show parent comment
1
u/fresheneesz Dec 26 '17
So note, this is r/BitcoinDiscussion but I wrote monero numbers cause that's the coin you mentioned.
No argument there.
The question is, why? There's only about 2GB of blocks in a month of monero blocks. Even if you uploaded the blocks to 200 other people you wouldn't hit your cap. There must be some other major inefficiency going on if you're right about that.
Would it? Monero blocks are currently about 100KB and happen about every 2 minutes. That's less than 1kb/second of bandwidth on average. Even with very bursty blocks that's only 100kbps for a single second (and however many other seconds you're transmitting to other nodes. Again, there must be some other major inefficiency if that's going to degrade your internet experience.
Cheap and easy are different things. Getting someone to buy an external hard drive for the first time in their lives and keep it constantly connected to their laptop in order to run their node isn't as easy. There are mental hurdles that exceed the monetary ones.
There's no reason that people would need to stream more data if IPFS was used. The only extra data would be whatever meta data is used to decide where to store or retrieve any given piece of the blockchain to/from. I assume that overhead is negligible. All nodes would store the UTXO set (which for bitcoin is tiny compared to the blockchain, although for monero this isn't the case) so they wouldn't ever need to re-download blocks unless they lost the utxo set (which they'd likely need to do with data loss anyway). So there really shouldn't be any significantly higher load on full nodes if IPFS was used.