Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UFB3u-0001TE-H2 for bitcoin-development@lists.sourceforge.net; Mon, 11 Mar 2013 22:19:18 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.214.170 as permitted sender) client-ip=209.85.214.170; envelope-from=mh.in.england@gmail.com; helo=mail-ob0-f170.google.com; Received: from mail-ob0-f170.google.com ([209.85.214.170]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1UFB3p-0002mA-1p for bitcoin-development@lists.sourceforge.net; Mon, 11 Mar 2013 22:19:18 +0000 Received: by mail-ob0-f170.google.com with SMTP id wc20so3887156obb.15 for ; Mon, 11 Mar 2013 15:19:07 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.1.10 with SMTP id 10mr10547684obi.15.1363040347642; Mon, 11 Mar 2013 15:19:07 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.76.86.169 with HTTP; Mon, 11 Mar 2013 15:19:07 -0700 (PDT) In-Reply-To: <513E2BC6.2050102@gmail.com> References: <20130310043155.GA20020@savin> <75F78378-7580-4D69-A5EA-E943AF7CEB0C@benlabs.net> <513E2BC6.2050102@gmail.com> Date: Mon, 11 Mar 2013 23:19:07 +0100 X-Google-Sender-Auth: f6G0Lh7mphmQ9W26EbXlHWzSLCk Message-ID: From: Mike Hearn To: =?UTF-8?Q?Tadas_Varanavi=C4=8Dius?= Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1UFB3p-0002mA-1p Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] Blocking uneconomical UTXO creation X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 22:19:18 -0000 > This would be bloating UTXO data at a speed of 52 GB/year. That's a very > big memory leak. And this is just the unspendable outputs. Firstly, the UTXO set is a LevelDB, it's not stored in memory. Outputs that never get spent are not in the working set by definition, after a while they just end up in the bottom levels and hardly ever get accessed. If need be we can always help LevelDB out a bit by moving outputs that we suspect are unlikely to get spent into a separate database, but I doubt it's needed. Secondly, if an output can be proven unspendable it can be pruned immediately. We already reached consensus on adding some standard template using OP_RETURN that results in insta-pruning. So people who want to create unspendable outputs can do so with the only side-effect being long term chain storage. It would be effectively "free" to pruning nodes. So the issue is not really with unspendable outputs but with low-value spendable outputs. Wallets with lots of tiny outputs end up generating large transactions that take a long time to verify, in situations where the network redlines those transactions would end up at the bottom of the priority queue and might take longer to confirm. So wallet apps already have incentives to try and find a good balance in output sizes and defragment themselves if their average output gets too low in value, eg, by send-to-self transactions at night.