> > [...] First you provide proof of your best block height via coinbase [...]
>
> So I don't think you can use the height in the coinbase for that
> purpose, as it's not possible to validate it without the previous
> headers. That's common for more than just the height.

You can fake it of course, but it means you are spending money for PoW and I 
can't see viable attack here. You can commit to either lower height than actual 
or higher height, if you are malicious. If it is lower, then your chain will 
look weaker with some heuristic based on PoW of the tip and the chain length. 
So you are not going to do that. It thus seem it only makes sense to commit to 
higher than actual height. OK, this could convince me to be interested in your 
chain over others. So let's say the real chain is 600k blocks, you claim 1m 
blocks, and you prove 1m height block to me. So I can ask you about

1) 2000 headers from the tip down
2) AND another proof of height for the block at 1m-2000.

To be able to provide that you need to have such a chain and you can reuse any 
real subchain from mainnet. It's still possible that you can deliver that, but 
not for high difficulty.

Now if time warp attack is blocked, you will have pretty hard time to create 
such a chain that would look strongest in cumulative work. I don't have actual 
numbers though, so I can't say this would mitigate everything.


> > [...] to generate much longer chain with superslow timestamp increase (~5 
> > blocks in 1 second) without increasing difficulty (i.e. staying at min. 
> > diff.). [...]
>
> In that case, it would take about 7 minutes of block time seconds for
> the next retarget period, every 2016 blocks, and the difficulty would
> adjust. The difficulty would adjust in that case as if 2 weeks of blocks
> had been mined in 7 minutes. For the difficulty to remain the same the
> time between blocks needs to be 10 minutes.

This calculation does not apply under time warp attack. You can fake timestamps 
of all blocks except for those relevant to the retarget calculation. Those are 
only the first and the last block in the 2016 block window.
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev

Reply via email to