<div dir="ltr">I really like ideas that tackle this issue. The question imho is what is the incentive to run a &quot;<span style="color:rgb(0,0,0);font-size:12.8px">Full UTXO node&quot; instead of a pruned or archive node.</span><br style="color:rgb(0,0,0);font-size:12.8px"><div><span style="font-size:12.8px;color:rgb(0,0,0)">For starters, it would be nice to know what would be the savings for Full UTXO nodes over archive nodes right now.</span></div><div><span style="font-size:12.8px;color:rgb(0,0,0)">Also, what advantages would this have over &quot;archive pruned nodes: nodes that store X blocks of the whole blockchain before 420000&quot;. Seems like an interesting intermediate use case to me too.</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-13 18:11 GMT+00:00 jl2012--- via bitcoin-dev <span dir="ltr">&lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<span class=""><br>
<br>
On Mon, Dec 14, 2015 at 12:14 AM, Danny Thorpe &lt;<a href="mailto:danny.thorpe@gmail.com" target="_blank">danny.thorpe@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the current behavior / cost that this proposal is trying to avoid? Are ancient utxos required to be kept in memory always in a fully validating node, or can ancient utxos get pushed out of memory like a normal LRU caching db?<br>
</blockquote>
<br></span>
I don&#39;t see why it must be kept in memory. But storage is still a problem. With the 8 year limit and a fixed max block size, it indirectly sets an upper limit for UTXO set.<br>
<br>
<br>
Chris Priest via bitcoin-dev :<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This isn&#39;t going to kill bitcoin, but it won&#39;t make it any better.<br>
</blockquote>
<br></span>
Do you believe that thousands of volunteer full nodes are obliged to store an UTXO record, just because one paid US$0.01 to an anonymous miner 100 years ago? It sounds insanely cheap, isn&#39;t it? My proposal (or similar proposal by Peter Todd) is to solve this problem. Many commercial banks have a dormant threshold less than 8 years so I believe it is a balanced choice.<br>
<br>
Back to the topic, I would like to further elaborate my proposal.<br>
<br>
We have 3 types of full nodes:<br>
<br>
Archive nodes: full nodes that store the whole blockchain<br>
Full UTXO nodes: full nodes that fully store the latest UTXO state, but not the raw blockchain<br>
Lite UTXO nodes: full nodes that store only UTXO created in that past 420000 blocks<br>
<br>
Currently, if one holds nothing but a private key, he must consult either an archive node or a full UTXO node for the latest UTXO state to spend his coin. We currently do not have any lite UTXO node, and such node would not work properly beyond block 420000.<br>
<br>
With the softfork I described in my original post, if the UTXO is created within the last 420000 blocks, the key holder may consult any type of full node, including a lite UTXO node, to create the transaction.<br>
<br>
If the UTXO has been confirmed by more than 420000 blocks, a lite UTXO node obviously can&#39;t provide the necessary information to spend the coin. However, not even a full UTXO node may do so. A full UTXO node could tell the position of the UTXO in the blockchain, but can&#39;t provide all the information required by my specification. Only an archive node may do so.<br>
<br>
What extra information is needed?<br>
<br>
(1) If your UTXO was generated in block Y, you first need to know the TXO state (spent / unspent) of all outputs in block Y at block (Y + 420000). Only UTXOs at that time are relevant.<br>
<br>
(2) You also need to know if there was any spending of any block Y UTXOs after block (Y + 420000).<br>
<br>
It is not possible to construct the membership prove I require without these information. It is designed this way, so that lite UTXO nodes won&#39;t need to store any dormant UTXO records: not even the hash of individual dormant UTXO records. If the blockchain grows to insanely big, it may take days or weeks to retrieve to records. However, I don&#39;t think this is relevant as one has already left his coins dormant for &gt;8 years. Actually, you don&#39;t even need the full blockchain. For (1), all you need is the 420000 blocks from Y to Y+420000 minus any witness data, as you don&#39;t need to do any validation. For (2), you just need the coinbase of Y+420001 to present, where any spending would have been committed, and retrieve the full block only if a spending is found.<br>
<br>
So the Bitcoin Bank (miners) is not going to shred your record and confiscate your money. Instead, the Bank throws your record to the garage (raw blockchain). You can search for your record by yourself, or employ someone (archive node) to search it for you. In any case it incurs costs. But as thousands of bankers have kept your record on their limited desk space for 8 years for free (though one of them might receive a fraction of a penny from you), you shouldn&#39;t complain with any moral, technical, or legal reason. And no matter what users say, I believe something like this will happen when miners and full nodes can&#39;t handle the UTXO set.<br>
<br>
I&#39;d like to see more efficient proposals that archive the same goals.<br>
<br>
p.s. there were some typos in my original. The second sentence of the second paragraph should be read as &quot;For every block X+420000, it will commit to a hash for all UTXOs generated in block X.&quot;<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQGcBAEBCAAGBQJWbbR2AAoJEO6eVSA0viTScEoL/RPlsxr0A5wTtgdi+9i4AFlV<br>
Sw/He89+YPGe5VCG74YNAPLEUF1/rICzUJ4DulvNTOo/5xtmkv5ok4bD7v1JZnH3<br>
DE2PExMQYs2X4Qm6mkcwi8IWlMR2U5j5ebUq21Kj4AqVFj9UcQmYGhPehB2f+cM9<br>
Wki/TDwNj5fV8AZ4uR9pPgaf+bvVQQ9BOOLiIMiTbphNCx1hfGfYcsqmXlCbGk9A<br>
PatGR88aQTxpa7PhbCZwwf76cKuOaYYZeHr9jRR9RL5rZVXgE1SI/niBytJhXaP8<br>
lwYtk4Bpz0IGd23v1dArNQQoOp5Xycbeq1l1qyv/qtxju65No+dhqiEcFBZVI1AS<br>
VcndMQ+yvNuxVgib2Ifh9YjXelWAqqLzzoVcz2RxXh6HJ0tVKxBokwdAcsclZb93<br>
zQ1JhDR4vBpLquytZA8lDIxJraNCdB/KEAOAey6ljP3zL7fBLBp1oZw4DDDtFy8V<br>
EMjrOSVnjyuyfey2YXsGnnHuQS0mpwmSroV2400uGQ==<br>
=2xRy<br>
-----END PGP SIGNATURE-----<div class="HOEnZb"><div class="h5"><br>
<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>
</div></div></blockquote></div><br></div>