News for hackers. Stuff that matters.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by TD-Linux on Friday December 15, 2017 @06:01PM (#15935999)
The described system is basically identical to Bitcoin's pruned mode. It's lot better than geth's fast sync, which trusts your peers to not have messed with the state.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Friday December 15, 2017 @07:32PM (#15936536)
I don't think there's any way they could mess with the state, since every block header has a merkle root of that block's state.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by makomk on Saturday December 16, 2017 @11:35AM (#15940225)
That just prevents anyone except miners from messing with the state. One of the nice properties of Bitcoin is that even miners can't magic more coins into existence than allowed by the protocol or spend other people's money. You lose that a little with this kind of fast sync. It's probably worth it from a usability standpoint though.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Saturday December 16, 2017 @12:21PM (#15940453)
Miners could mess with very recent state, but if you download enough blocks with full state to be confident of finality for the earliest one, and verify just those transitions, you're still safe.

If the incorrect blocks were published on the network, they'd be rejected by other miners, so you don't have to look far back unless (1) there's a sustained 51% attack on the whole network, or (2) you're a very juicy target and a huge miner can take over your internet connection, and you don't notice a large drop in difficulty.

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by 5chdn on Sunday December 17, 2017 @04:34PM (#15947803)
Miners are already incentivized not to mess with the state.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by flamedoge on Saturday December 16, 2017 @12:02AM (#15937818)
Highly unlikely, but in theory it should be vulnerable to birthday attack
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by AgentME on Saturday December 16, 2017 @12:07AM (#15937828)
If you can get hash collisions, then this issue is only one of many and that isn't exclusive to pruned modes. Bitcoin and friends rely pretty heavily throughout on the assumption of no hash collisions.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Saturday December 16, 2017 @09:50AM (#15939746)
With 256-bit hashes, it would be many millions of years before a birthday attack succeeded.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by VMG on Friday December 15, 2017 @06:24PM (#15936159)
Bitcoin prune node still downloads the full blockchain, just does not store all of it. It trusts the local file system, not other nodes.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by 5chdn on Sunday December 17, 2017 @04:35PM (#15947811)
But a pruned bitcoin node does not hold the full blockchain for other nodes to download. A pruned Ethereum node, however, does.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by TD-Linux on Friday December 15, 2017 @06:28PM (#15936183)
Yeah that's what I meant, I updated my comment to be clearer.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by homakov on Friday December 15, 2017 @10:47PM (#15937418)
Irrelevant, as it is not working on a powerful laptop anymore, which means it is not a real blockchain anymore.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by kruhft on Friday December 15, 2017 @11:59PM (#15937802)
Good thinking. I like that.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by homakov on Saturday December 16, 2017 @12:18AM (#15937863)
I'm not trolling: I have 50Mbit connection and specd out macbook - probably most powerful laptop you can expect from a user.

This Mist/Wallet thing does. not. work.

Maybe if i tweak or use light client it would, but as a user I don't care.

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by esaym on Saturday December 16, 2017 @02:29AM (#15938332)
Yea I gave up on eth wallets as well. I just ended up dumping my coins onto coinbase and hope they don't get hacked or something... I looked into hot wallets, but so many people have theirs keys stolen somehow. Figured it was last risk to leave it on an exchange.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by akerro on Saturday December 16, 2017 @03:58AM (#15938572)
I have a Dell laptop that I bought for ~$500 in 2014, upgraded to 16GB RAM and SSD, it holds ETH, LTC and BTC blockchain. It's constant network transfer is 4MB/s, avg. CPU usage 70%. Run Arch. What problem are you having?
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by homakov on Saturday December 16, 2017 @04:59AM (#15938757)
How often do you sync? First of all, mist crashes way too often. Even when it works it takes hours to sync. DOes it work smoothly for you?
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by akerro on Saturday December 16, 2017 @06:31AM (#15939046)
Mist crashed only once for me when I run out of memory, "swarm" consumed 15GB of RAM and was killed by kernel. Otherwise it never crashed for me. Mist is on all the time, bitcoin once day for a few hours (3-5hrs), litecoin is on for weekends.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by homakov on Saturday December 16, 2017 @07:03AM (#15939166)
Maybe because it's always on it works for you. I only open it once in a while, and leave frustrated.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by Svenstaro on Saturday December 16, 2017 @02:58AM (#15938421)
You should really use parity I think. Its chain will end up at ~9GiB and the traffic is minimal.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by homakov on Saturday December 16, 2017 @04:59AM (#15938761)
I know parity is better, I tried. But I prefer "official" stuff to at least be bailed out if i lose my coins :D
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by 5chdn on Sunday December 17, 2017 @04:39PM (#15947836)
lol :D
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by mgalka on Friday December 15, 2017 @07:14PM (#15936449)
Depends on your purpose for running a node. I use it to validate transactions and to query transaction histories, for which the full state is necessary.

It would be nice if they could implement a version that allows this, without the bloat.

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by cft on Friday December 15, 2017 @08:54PM (#15936907)
I also use it to query transaction histories and to trace the currency flows. For that, full sync is necessary AFAIK.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by QML on Friday December 15, 2017 @09:14PM (#15937000)
Someone help me with this, but why do people need the full history of the Ethereum blockchain? Shouldn't having a few of the last valid blocks be enough?
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by CydeWeys on Friday December 15, 2017 @09:18PM (#15937022)
Each block does not replay the entire state of the system. There could be an unspent output in a block from a year ago, that is then spent in a transaction tomorrow. You need to track all of the valid inputs that might go into a transaction. You don't need the full history (i.e. you don't need spent outputs), but you certainly need a lot more than just the most recent N blocks.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by zeven7 on Friday December 15, 2017 @10:03PM (#15937172)
You're describing Bitcoin. Ethereum doesn't work like that.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by AgentME on Saturday December 16, 2017 @12:09AM (#15937845)
In Ethereum, you can track the account balances; in Bitcoin, you can choose to track just the unspent transactions. The decision is pretty arbitrary from the pruning perspective.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by QML on Friday December 15, 2017 @09:23PM (#15937046)
Is this for Bitcoin or for Ethereum? I thought the former has UTXOs and the latter has accounts.

So the issue is, if you want to validate a transaction, I would have to find the block in which the input was made, and confirm all the blocks from that one to the current block?

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Friday December 15, 2017 @10:06PM (#15937184)
You're correct, Ethereum uses account balances. You don't have to keep track of inputs and outputs, just check that the balance is sufficient.

Since each block header has a merkle root of the block's state, you can just get all the block headers to check PoW, get the current state, and validate transactions and states as many blocks back as you feel you need to make sure a miner hasn't faked the current state.

Here's an old article by Vitalik on the subject:

https://blog.ethereum.org/2015/06/26/state-tree-pruning/

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by CydeWeys on Saturday December 16, 2017 @08:54AM (#15939523)
Yeah, looks like I got the terminology wrong, but the concept is the same for these purposes. Whether you track the outputs or the account balances, there's a lot more information that you need to keep an accounting of than what you can glean from just the last N blocks. Which makes sense; it is a distributed ledger after all.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by nowarninglabel on Friday December 15, 2017 @10:40PM (#15937371)
2 years ago when I was first experimenting with Ethereum, it was necessary for trying to extract out smart contract addresses among other things. Now, I'd likely use etherscan or such, unless I was building something proprietary.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by wslh on Friday December 15, 2017 @10:04PM (#15937175)
Many reasons. If you want to analyze the events and method calls happening on a smart contract you need to review the whole blockchain.

A more obvious use case is reviewing all the transactions related to your address.

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by KamelAufAbwegen on Friday December 15, 2017 @07:49PM (#15936612)
Somebody still have to save the full chain. I don't think the idea is finally to have just one full copy of the chain.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by 5chdn on Sunday December 17, 2017 @04:38PM (#15947828)
But that's precisely my point. Pruned Ethereum nodes hold _all_ blocks and therefore are full nodes. In Ethereum, unlike pruning Bitcoin nodes, old blocks are not deleted.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Friday December 15, 2017 @10:33PM (#15937320)
Yes but you only need the transaction history for that, since you can reconstruct any block state you wish from the transactions.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by mkagenius on Friday December 15, 2017 @10:55PM (#15937473)
If blocks doesn’t have anything extra that transactions cannot create then why is block bloated and why do we even need it?
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Saturday December 16, 2017 @09:57AM (#15939783)
You don't. Full nodes do just fine without storing all those block states.

You need the current state, and very recent history just to make sure there's no shenanigans, but you don't need old state unless you're doing historical queries for some reason.

Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by ohhhlol on Friday December 15, 2017 @08:39PM (#15936835)
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by DennisP on Friday December 15, 2017 @10:14PM (#15937208)
That's only if you store the full state of every block, which isn't necessary even for a full node. If you just keep a few recent block states, plus the entire transaction history, it's in the low tens of GB but you can still fully validate the entire chain history, and reconstruct the state of any block you want.
Re:The Ethereum-blockchain size will not exceed 1TB anytime ... by 5chdn on Sunday December 17, 2017 @04:40PM (#15947839)
Thanks for not reading the linked article, I'm explaining this very same example in the first paragraph :)