<div dir="ltr"><div class="gmail_quote">On Tue, May 19, 2015 at 11:16 AM Tier Nolan &lt;<a href="mailto:tier.nolan@gmail.com">tier.nolan@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 19, 2015 at 9:28 AM, Christian Decker <span dir="ltr">&lt;<a href="mailto:decker.christian@gmail.com" target="_blank">decker.christian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">Thanks Stephen, I hadn&#39;t thought about BIP 34 and we need to address this in both proposals. </span><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">If we can avoid it I&#39;d like not to have one transaction hashed one way and other transactions in another way.</span></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The normalized TXID cannot depend on height for other transactions.  Otherwise, it gets mutated when been added to the chain, depending on height.<br></div></div></div></div></blockquote><div>Well in the case of coinbase transactions we want them to be dependent on the height they are included in, which is not a problem since they are only valid in conjunction with the block that mined them. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>An option would be that the height is included in the scriptSig for all transactions, but for non-coinbase transctions, the height used is zero.<br></div></div></div></div></blockquote><div>No need to add an extra field to the transaction just to include the height. We can just add a rule that the height specified in the scriptSig in coinbase transactions (and only coinbase transactions) is copied into the locktime of the transaction before computing the normalized transaction ID and leave the locktime untouched for all normal transactions</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>I think if height has to be an input into the normalized txid function, the specifics of inclusion don&#39;t matter.<br></div><div><br></div><div>The previous txid for coinbases are required to be all zeros, so the normalized txid could be to add the height to the txids of all inputs.  Again, non-coinbase transactions would have heights of zero.<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">Is there a specific reason why that was not chosen at the time?<br></span></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I assumed that since the scriptSig in the coinbase is specifically intended to be &quot;random&quot; bytes/extra nonce, so putting a restriction on it was guaranteed to be backward compatible.<br></div></div></div></div></blockquote><div>Sounds reasonable :-) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div> </div></div></div></div>
------------------------------------------------------------------------------<br>
One dashboard for servers and applications across Physical-Virtual-Cloud<br>
Widest out-of-the-box monitoring support with 50+ applications<br>
Performance metrics, stats and reports that give you Actionable Insights<br>
Deep dive visibility with transaction tracing using APM Insight.<br>
<a href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a>_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net" target="_blank">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
</blockquote></div></div>