summaryrefslogtreecommitdiff
path: root/14/21b7c99fd5865192e1727c68a6120f9154fac4
blob: f91ca007083586548172e17715dc022dacddcf0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <jim@ergophobia.org>) id 1YrQ5S-0006rC-0A
	for bitcoin-development@lists.sourceforge.net;
	Sun, 10 May 2015 12:12:02 +0000
X-ACL-Warn: 
Received: from mail-wg0-f54.google.com ([74.125.82.54])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1YrQ5Q-0002c6-50
	for bitcoin-development@lists.sourceforge.net;
	Sun, 10 May 2015 12:12:01 +0000
Received: by wgin8 with SMTP id n8so106412722wgi.0
	for <bitcoin-development@lists.sourceforge.net>;
	Sun, 10 May 2015 05:11:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type;
	bh=CYjaIXSHWfdq6E9WBlBFMkxJUD9UCmSbpOkyQYNCHQg=;
	b=jHO40t0miwJWUStm/0j8mcJE3EFrkM39g9Rw4ciamXgeFtAuc6dBc/iegoKIu+afkx
	yg4YAmgt/CEhCHhGRcbTRehX7IG6jjn2KQiet3B+rppq/ISct5MA8hxS4FQo3OSK7I6p
	vZ99NAvedIm9adqrO6n16mAj8zXuh2DhV1gVqVi9v3AO1y9f+LSkg7k3yZjNLPlwjeuc
	q3wL6f1WphgBfwh5LlDOJM0G/4quabDuRfRWpKBdu5CHvp8gWaI2rZBLEHpd1XIGmwAZ
	OD20RvAmfJLUgZ/damy8NvjEb7gglbWM/vMXGO95dZ/HfC+B2gm4cjFRX/H/f2KEVlUl
	y/OQ==
X-Gm-Message-State: ALoCoQnPN3eHqmZ7H9YHC6hSxJXdE+DHdBAMasMvSZDZPuueO5Ge7q9SZ0z4MbaYhMfWDG+4jTI3
MIME-Version: 1.0
X-Received: by 10.180.82.97 with SMTP id h1mr11346519wiy.26.1431259914027;
	Sun, 10 May 2015 05:11:54 -0700 (PDT)
Received: by 10.194.246.69 with HTTP; Sun, 10 May 2015 05:11:53 -0700 (PDT)
Received: by 10.194.246.69 with HTTP; Sun, 10 May 2015 05:11:53 -0700 (PDT)
In-Reply-To: <2114827.D6GUhXtGkV@crushinator>
References: <CANe1mWzBy8-C+CWfwaOLxJ2wokjy8ytQUh2TkRY_Ummn1BpPzw@mail.gmail.com>
	<2114827.D6GUhXtGkV@crushinator>
Date: Sun, 10 May 2015 07:11:53 -0500
Message-ID: <CANe1mWxfjTOtgKJ=1MrvLQusoJw6Ecyk+aLoN7JUaVPsyp9S8g@mail.gmail.com>
From: Jim Phillips <jim@ergophobia.org>
To: Matt Whitlock <bip@mattwhitlock.name>
Content-Type: multipart/alternative; boundary=f46d04426730c1da400515b92a8e
X-Spam-Score: 1.0 (+)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	1.0 HTML_MESSAGE           BODY: HTML included in message
X-Headers-End: 1YrQ5Q-0002c6-50
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] A suggestion for reducing the size of the
 UTXO database
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Sun, 10 May 2015 12:12:02 -0000

--f46d04426730c1da400515b92a8e
Content-Type: text/plain; charset=UTF-8

I feel your pain. I've had the same thing happen to me in the past. And I
agree it's more likely to occur with my proposed scheme but I think with HD
wallets there will still be UTXOs left unspent after most transactions
since, for privacy sake it's looking for the smallest set of addresses that
can be linked.
On May 9, 2015 9:11 PM, "Matt Whitlock" <bip@mattwhitlock.name> wrote:

> Minimizing the number of UTXOs in a wallet is sometimes not in the best
> interests of the user. In fact, quite often I've wished for a configuration
> option like "Try to maintain _[number]_ UTXOs in the wallet." This is
> because I often want to make multiple spends from my wallet within one
> block, but spends of unconfirmed inputs are less reliable than spends of
> confirmed inputs, and some wallets (e.g., Andreas Schildbach's wallet)
> don't even allow it - you can only spend confirmed UTXOs. I can't tell you
> how aggravating it is to have to tell a friend, "Oh, oops, I can't pay you
> yet. I have to wait for the last transaction I did to confirm first." All
> the more aggravating because I know, if I have multiple UTXOs in my wallet,
> I can make multiple spends within the same block.
>
>
> On Saturday, 9 May 2015, at 12:09 pm, Jim Phillips wrote:
> > Forgive me if this idea has been suggested before, but I made this
> > suggestion on reddit and I got some feedback recommending I also bring it
> > to this list -- so here goes.
> >
> > I wonder if there isn't perhaps a simpler way of dealing with UTXO
> growth.
> > What if, rather than deal with the issue at the protocol level, we deal
> > with it at the source of the problem -- the wallets. Right now, the
> typical
> > wallet selects only the minimum number of unspent outputs when building a
> > transaction. The goal is to keep the transaction size to a minimum so
> that
> > the fee stays low. Consequently, lots of unspent outputs just don't get
> > used, and are left lying around until some point in the future.
> >
> > What if we started designing wallets to consolidate unspent outputs? When
> > selecting unspent outputs for a transaction, rather than choosing just
> the
> > minimum number from a particular address, why not select them ALL? Take
> all
> > of the UTXOs from a particular address or wallet, send however much needs
> > to be spent to the payee, and send the rest back to the same address or a
> > change address as a single output? Through this method, we should wind up
> > shrinking the UTXO database over time rather than growing it with each
> > transaction. Obviously, as Bitcoin gains wider adoption, the UTXO
> database
> > will grow, simply because there are 7 billion people in the world, and
> > eventually a good percentage of them will have one or more wallets with
> > spendable bitcoin. But this idea could limit the growth at least.
> >
> > The vast majority of users are running one of a handful of different
> wallet
> > apps: Core, Electrum; Armory; Mycelium; Breadwallet; Coinbase; Circle;
> > Blockchain.info; and maybe a few others. The developers of all these
> > wallets have a vested interest in the continued usefulness of Bitcoin,
> and
> > so should not be opposed to changing their UTXO selection algorithms to
> one
> > that reduces the UTXO database instead of growing it.
> >
> > >From the miners perspective, even though these types of transactions
> would
> > be larger, the fee could stay low. Miners actually benefit from them in
> > that it reduces the amount of storage they need to dedicate to holding
> the
> > UTXO. So miners are incentivized to mine these types of transactions
> with a
> > higher priority despite a low fee.
> >
> > Relays could also get in on the action and enforce this type of behavior
> by
> > refusing to relay or deprioritizing the relay of transactions that don't
> > use all of the available UTXOs from the addresses used as inputs. Relays
> > are not only the ones who benefit the most from a reduction of the UTXO
> > database, they're also in the best position to promote good behavior.
> >
> > --
> > *James G. Phillips IV*
> > <https://plus.google.com/u/0/113107039501292625391/posts>
> >
> > *"Don't bunt. Aim out of the ball park. Aim for the company of
> immortals."
> > -- David Ogilvy*
> >
> >  *This message was created with 100% recycled electrons. Please think
> twice
> > before printing.*
>

--f46d04426730c1da400515b92a8e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">I feel your pain. I&#39;ve had the same thing happen to me i=
n the past. And I agree it&#39;s more likely to occur with my proposed sche=
me but I think with HD wallets there will still be UTXOs left unspent after=
 most transactions since, for privacy sake it&#39;s looking for the smalles=
t set of addresses that can be linked. </p>
<div class=3D"gmail_quote">On May 9, 2015 9:11 PM, &quot;Matt Whitlock&quot=
; &lt;<a href=3D"mailto:bip@mattwhitlock.name">bip@mattwhitlock.name</a>&gt=
; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Minimizing =
the number of UTXOs in a wallet is sometimes not in the best interests of t=
he user. In fact, quite often I&#39;ve wished for a configuration option li=
ke &quot;Try to maintain _[number]_ UTXOs in the wallet.&quot; This is beca=
use I often want to make multiple spends from my wallet within one block, b=
ut spends of unconfirmed inputs are less reliable than spends of confirmed =
inputs, and some wallets (e.g., Andreas Schildbach&#39;s wallet) don&#39;t =
even allow it - you can only spend confirmed UTXOs. I can&#39;t tell you ho=
w aggravating it is to have to tell a friend, &quot;Oh, oops, I can&#39;t p=
ay you yet. I have to wait for the last transaction I did to confirm first.=
&quot; All the more aggravating because I know, if I have multiple UTXOs in=
 my wallet, I can make multiple spends within the same block.<br>
<br>
<br>
On Saturday, 9 May 2015, at 12:09 pm, Jim Phillips wrote:<br>
&gt; Forgive me if this idea has been suggested before, but I made this<br>
&gt; suggestion on reddit and I got some feedback recommending I also bring=
 it<br>
&gt; to this list -- so here goes.<br>
&gt;<br>
&gt; I wonder if there isn&#39;t perhaps a simpler way of dealing with UTXO=
 growth.<br>
&gt; What if, rather than deal with the issue at the protocol level, we dea=
l<br>
&gt; with it at the source of the problem -- the wallets. Right now, the ty=
pical<br>
&gt; wallet selects only the minimum number of unspent outputs when buildin=
g a<br>
&gt; transaction. The goal is to keep the transaction size to a minimum so =
that<br>
&gt; the fee stays low. Consequently, lots of unspent outputs just don&#39;=
t get<br>
&gt; used, and are left lying around until some point in the future.<br>
&gt;<br>
&gt; What if we started designing wallets to consolidate unspent outputs? W=
hen<br>
&gt; selecting unspent outputs for a transaction, rather than choosing just=
 the<br>
&gt; minimum number from a particular address, why not select them ALL? Tak=
e all<br>
&gt; of the UTXOs from a particular address or wallet, send however much ne=
eds<br>
&gt; to be spent to the payee, and send the rest back to the same address o=
r a<br>
&gt; change address as a single output? Through this method, we should wind=
 up<br>
&gt; shrinking the UTXO database over time rather than growing it with each=
<br>
&gt; transaction. Obviously, as Bitcoin gains wider adoption, the UTXO data=
base<br>
&gt; will grow, simply because there are 7 billion people in the world, and=
<br>
&gt; eventually a good percentage of them will have one or more wallets wit=
h<br>
&gt; spendable bitcoin. But this idea could limit the growth at least.<br>
&gt;<br>
&gt; The vast majority of users are running one of a handful of different w=
allet<br>
&gt; apps: Core, Electrum; Armory; Mycelium; Breadwallet; Coinbase; Circle;=
<br>
&gt; Blockchain.info; and maybe a few others. The developers of all these<b=
r>
&gt; wallets have a vested interest in the continued usefulness of Bitcoin,=
 and<br>
&gt; so should not be opposed to changing their UTXO selection algorithms t=
o one<br>
&gt; that reduces the UTXO database instead of growing it.<br>
&gt;<br>
&gt; &gt;From the miners perspective, even though these types of transactio=
ns would<br>
&gt; be larger, the fee could stay low. Miners actually benefit from them i=
n<br>
&gt; that it reduces the amount of storage they need to dedicate to holding=
 the<br>
&gt; UTXO. So miners are incentivized to mine these types of transactions w=
ith a<br>
&gt; higher priority despite a low fee.<br>
&gt;<br>
&gt; Relays could also get in on the action and enforce this type of behavi=
or by<br>
&gt; refusing to relay or deprioritizing the relay of transactions that don=
&#39;t<br>
&gt; use all of the available UTXOs from the addresses used as inputs. Rela=
ys<br>
&gt; are not only the ones who benefit the most from a reduction of the UTX=
O<br>
&gt; database, they&#39;re also in the best position to promote good behavi=
or.<br>
&gt;<br>
&gt; --<br>
&gt; *James G. Phillips IV*<br>
&gt; &lt;<a href=3D"https://plus.google.com/u/0/113107039501292625391/posts=
" target=3D"_blank">https://plus.google.com/u/0/113107039501292625391/posts=
</a>&gt;<br>
&gt;<br>
&gt; *&quot;Don&#39;t bunt. Aim out of the ball park. Aim for the company o=
f immortals.&quot;<br>
&gt; -- David Ogilvy*<br>
&gt;<br>
&gt;=C2=A0 *This message was created with 100% recycled electrons. Please t=
hink twice<br>
&gt; before printing.*<br>
</blockquote></div>

--f46d04426730c1da400515b92a8e--