<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hey all,<div><br></div><div>I'm working on the UTXO database for my Python implementation of bitcoind and have found a situation I did not realize was valid, but since it seems to be, had a quick question.</div><div><br></div><div>If you look at block #546 the 4th transaction's first input uses its own block's 3rd transaction as an input.</div><div><a href="https://blockchain.info/block/000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6">https://blockchain.info/block/000000005a4ded781e667e06ceefafb71410b511fe0d5adc3e5a27ecbec34ae6</a></div><div><br></div><div>My question is, would the other way be valid, that is, could the 3rd transaction of a block, use the 4th transaction from the same block as an input? Or are transactions processed strictly top to bottom?</div><div><br></div><div>Thanks,</div><div>RicMoo</div><div><br></div><div>P.S. If it is valid, another question; what would happen if a transaction was self-referencing? I realize it would be very difficult to find one, but if I could find a transaction X whose input was X and had an output Y, would Y be a new valid utxo, without being a generation transaction input?</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸&gt;&lt;(((º&gt;<br><br>Richard Moore ~ Founder<br>Genetic Mistakes Software inc.<br>phone: (778) 882-6125<br>email:&nbsp;<a href="mailto:ricmoo@geneticmistakes.com">ricmoo@geneticmistakes.com</a><br>www:&nbsp;<a href="http://GeneticMistakes.com/">http://GeneticMistakes.com</a></span>
</div>
<br></div></body></html>