11
1
I understand that to mine bitcoins you need the hash of the previous block, and in order to resolve possible forks. But why not just have the last 100 blocks (or more whatever is appropriate) and keep a sliding window of the last blocks?
11
1
I understand that to mine bitcoins you need the hash of the previous block, and in order to resolve possible forks. But why not just have the last 100 blocks (or more whatever is appropriate) and keep a sliding window of the last blocks?
8
To mine a valid block, you need to ensure that every Bitcoin transaction in your block is valid. Because each transaction (except for coinbase transactions) spends the output from a previous transaction, you need to have processed every previous transaction in the blockchain.
This has a couple implications:
-prune parameter.Unless, of course, you want to mine blocks with no transactions in them at all. In that case, you could just assume the longest chain contains only valid transactions. It's anti-social, but as long as you care only about the block reward and not everyone does it, it will work. – David Schwartz – 2016-03-31T07:27:47.973
1One would probably need the entire chain to avoid double-spend-transactions in the newly mined block? – tobixen – 2015-10-28T14:55:42.483
related: Mini-Blockchain proposal: How is the proof-chain secured against injections?, If more than one coin did the “mini-blockchain” proposal, would that make the weaker coin vulnerable?
– Murch – 2015-11-03T23:33:25.047