<p dir="ltr">I believe the attacks are the same for height or median time of the prev block are equal, only the time of the current block has more edge cases.</p>
<div class="gmail_quote">On Dec 18, 2015 9:15 PM, &quot;Jeff Garzik&quot; &lt;<a href="mailto:jgarzik@gmail.com">jgarzik@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My preference is height activation + one step per block (i.e. also height).  Height seems KISS.<div><br></div><div>AFAICT most of the attacks would occur around the already-heavily-watched flag day activation event, in a height based environment, a useful attribute.</div><div><br></div><div><div>However I would like to hear from others about possible attacks with the various approaches, before diverging from the default community approach of switch-based-on-time.</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 3:10 PM, Jorge Timón <span dir="ltr">&lt;<a href="mailto:jtimon@jtimon.cc" target="_blank">jtimon@jtimon.cc</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Well, if it&#39;s not going to be height, I think median time of the previous block is better than the time of the current one, and would also solve Chun Wang&#39;s concerns.<br>
But as said I prefer to use heights that correspond to diff recalculation (because that&#39;s the window that bip9 will use for the later 95% confirmation anyway).</p><div><div>
<div class="gmail_quote">On Dec 18, 2015 9:02 PM, &quot;Jeff Garzik&quot; &lt;<a href="mailto:jgarzik@gmail.com" target="_blank">jgarzik@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">From a code standpoint, based off height is easy.<div><br></div><div>My first internal version triggered on block 406,800 (~May 5), and each block increased by 20 bytes thereafter.</div><div><br></div><div>It was changed to time, because time was the standard used in years past for other changes; MTP flag day is more stable than block height.</div><div><br></div><div>It is preferred to have a single flag trigger (height or time), rather than the more complex trigger-on-time, increment-on-height, but any combination of those will work.</div><div><br></div><div>Easy to change code back to height-based...</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 2:52 PM, Jorge Timón <span dir="ltr">&lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I agree that nHeight is the simplest option and is my preference.<br>
Another option is to use the median time from the previous block (thus you know whether or not the next block should start the miner confirmation or not). In fact, if we&#39;re going to use bip9  for 95% miner upgrade confirmation, it would be nice to always pick a difficulty retarget block (ie block.nHeight % DifficultyAdjustmentInterval == 0).<br>
Actually I would always have an initial height in bip9, for softforks too.<br>
I would also use the sign bit as the &quot;hardfork bit&quot; that gets activated for the next diff interval after 95% is reached and a hardfork becomes active (that way even SPV nodes will notice when a softfork  or hardfork happens and also be able to tell which one is it).<br>
I should update bip99 with all this. And if the 2 mb bump is uncontroversial, maybe I can add that to the timewarp fix and th recovery of the other 2 bits in block.nVersion (given that bip102 doesn&#39;t seem to follow bip99&#39;s recommendations and doesn&#39;t want to give 6 full months as the pre activation grace period).</p><div><div>
<div class="gmail_quote">On Dec 18, 2015 8:17 PM, &quot;Chun Wang via bitcoin-dev&quot; &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In many BIPs we have seen, include the latest BIP202, it is the block<br>
time that determine the max block size. From from pool&#39;s point of<br>
view, it cannot issue a job with a fixed ntime due to the existence of<br>
ntime roll. It is hard to issue a job with the max block size unknown.<br>
For developers, it is also easier to implement if max block size is a<br>
function of block height instead of time. Block height is also much<br>
more simple and elegant than time.<br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
</blockquote></div>
</div></div><br>_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>