summaryrefslogtreecommitdiff
path: root/33/2c6c6ade85e05273de28b447a121e116b2d613
blob: f79e443a21d3511cf268374af1bb90974701a0cb (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
Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <danny.thorpe@gmail.com>) id 1YsGC8-0007xj-PI
	for bitcoin-development@lists.sourceforge.net;
	Tue, 12 May 2015 19:50:24 +0000
Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com
	designates 209.85.214.180 as permitted sender)
	client-ip=209.85.214.180; envelope-from=danny.thorpe@gmail.com;
	helo=mail-ob0-f180.google.com; 
Received: from mail-ob0-f180.google.com ([209.85.214.180])
	by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1YsGC6-0000wF-85
	for bitcoin-development@lists.sourceforge.net;
	Tue, 12 May 2015 19:50:24 +0000
Received: by obcus9 with SMTP id us9so13980164obc.2
	for <bitcoin-development@lists.sourceforge.net>;
	Tue, 12 May 2015 12:50:16 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.202.102.21 with SMTP id a21mr12710584oic.112.1431460216760; 
	Tue, 12 May 2015 12:50:16 -0700 (PDT)
Received: by 10.60.2.105 with HTTP; Tue, 12 May 2015 12:50:16 -0700 (PDT)
In-Reply-To: <CANe1mWzBy8-C+CWfwaOLxJ2wokjy8ytQUh2TkRY_Ummn1BpPzw@mail.gmail.com>
References: <CANe1mWzBy8-C+CWfwaOLxJ2wokjy8ytQUh2TkRY_Ummn1BpPzw@mail.gmail.com>
Date: Tue, 12 May 2015 12:50:16 -0700
Message-ID: <CAJN5wHXHtcGWi3uViFcAL4OyPJV9HuNqTGy90c3zKONynNWT6w@mail.gmail.com>
From: Danny Thorpe <danny.thorpe@gmail.com>
To: Jim Phillips <jim@ergophobia.org>
Content-Type: multipart/alternative; boundary=001a1140e85ebaf0f60515e7cd35
X-Spam-Score: -0.1 (/)
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
	(danny.thorpe[at]gmail.com)
	-0.0 SPF_PASS               SPF: sender matches SPF record
	1.0 HTML_MESSAGE           BODY: HTML included in message
	-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	author's domain
	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
	0.0 T_REMOTE_IMAGE         Message contains an external image
	0.5 AWL AWL: Adjusted score from AWL reputation of From: address
X-Headers-End: 1YsGC6-0000wF-85
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: Tue, 12 May 2015 19:50:24 -0000

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

Having thousands of utxos floating around for a single address is clearly a
bad thing - it creates a lot of memory load on bitcoin nodes.

However, having only one utxo for an address is also a bad thing, for
concurrent operations.

Having "several" utxos available to spend is good for parallelism, so that
2 or more tasks which are spending from the same address don't have to line
up single file waiting for one of the tasks to publish a tx first so that
the next task can spend the (unconfirmed) change output of the first.
Requiring/Forcing/Having a single output carry the entire balance of an
address does not work at scale. (Yes, this presumes that the tasks are
coordinated so that they don't attempt to spend the same outputs. Internal
coordination is solvable.)

In multiple replies, you push for having "all" utxos of an address spent in
one transaction.  Why all?  If the objective is to reduce the size of the
utxo pool, it would be sufficient simply to recommend that wallets and
other spenders consume more utxos than they create, on average.

I'm ok with "consume more utxos than you generate" as a good citizen / best
practices recommendation, but a requirement that all prior outputs must be
spent in one transaction seems excessive and impractical.

-Danny

On Sat, May 9, 2015 at 10:09 AM, Jim Phillips <jim@ergophobia.org> 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.*
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>
>

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

<div dir=3D"ltr">Having thousands of utxos floating around for a single add=
ress is clearly a bad thing - it creates a lot of memory load on bitcoin no=
des.=C2=A0<div><br></div><div>However, having only one utxo for an address =
is also a bad thing, for concurrent operations.=C2=A0<div><br></div><div>Ha=
ving &quot;several&quot; utxos available to spend is good for parallelism, =
so that 2 or more tasks which are spending from the same address don&#39;t =
have to line up single file waiting for one of the tasks to publish a tx fi=
rst so that the next task can spend the (unconfirmed) change output of the =
first. Requiring/Forcing/Having a single output carry the entire balance of=
 an address does not work at scale. (Yes, this presumes that the tasks are =
coordinated so that they don&#39;t attempt to spend the same outputs. Inter=
nal coordination is solvable.)<br></div><div><br></div><div>In multiple rep=
lies, you push for having &quot;all&quot; utxos of an address spent in one =
transaction.=C2=A0 Why all?=C2=A0 If the objective is to reduce the size of=
 the utxo pool, it would be sufficient simply to recommend that wallets and=
 other spenders consume more utxos than they create, on average. =C2=A0</di=
v><div><br></div><div>I&#39;m ok with &quot;consume more utxos than you gen=
erate&quot; as a good citizen / best practices recommendation, but a requir=
ement that all prior outputs must be spent in one transaction seems excessi=
ve and impractical.</div><div><br></div><div>-Danny</div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, May 9, 2015 at 10:0=
9 AM, Jim Phillips <span dir=3D"ltr">&lt;<a href=3D"mailto:jim@ergophobia.o=
rg" target=3D"_blank">jim@ergophobia.org</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><div dir=3D"ltr"><div>Forgive me if this idea has bee=
n suggested before, but I made this suggestion on reddit and I got some fee=
dback recommending I also bring it to this list -- so here goes.</div><div>=
<br></div><div>I wonder if there isn&#39;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 ju=
st don&#39;t get used, and are left lying around until some point in the fu=
ture.</div><div><br></div><div>What if we started designing wallets to cons=
olidate 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 wa=
llet, send however much needs to be spent to the payee, and send the rest b=
ack to the same address or a change address as a single output? Through thi=
s method, we should wind up shrinking the UTXO database over time rather th=
an growing it with each transaction. Obviously, as Bitcoin gains wider adop=
tion, the UTXO database will grow, simply because there are 7 billion peopl=
e in the world, and eventually a good percentage of them will have one or m=
ore wallets with spendable bitcoin. But this idea could limit the growth at=
 least.</div><div><br></div><div>The vast majority of users are running one=
 of a handful of different wallet apps: Core, Electrum; Armory; Mycelium; B=
readwallet; Coinbase; Circle; Blockchain.info; and maybe a few others. The =
developers of all these wallets have a vested interest in the continued use=
fulness of Bitcoin, and so should not be opposed to changing their UTXO sel=
ection algorithms to one that reduces the UTXO database instead of growing =
it.</div><div><br></div><div>From the miners perspective, even though these=
 types of transactions would be larger, the fee could stay low. Miners actu=
ally benefit from them in that it reduces the amount of storage they need t=
o dedicate to holding the UTXO. So miners are incentivized to mine these ty=
pes of transactions with a higher priority despite a low fee.</div><div><br=
></div><div>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&#39;t use all of the available UTXOs from the addresses used as in=
puts. Relays are not only the ones who benefit the most from a reduction of=
 the UTXO database, they&#39;re also in the best position to promote good b=
ehavior.</div><div><div><div><br></div><div>--<div><b>James G. Phillips IV<=
/b>=C2=A0<a href=3D"https://plus.google.com/u/0/113107039501292625391/posts=
" style=3D"font-size:x-small" target=3D"_blank"><img src=3D"https://ssl.gst=
atic.com/images/icons/gplus-16.png"></a>=C2=A0</div></div><div><font size=
=3D"1"><i>&quot;Don&#39;t bunt. Aim out of the ball park. Aim for the compa=
ny of immortals.&quot; -- David Ogilvy<br></i></font><div><font size=3D"1">=
<br></font></div></div><div><font size=3D"1"><img src=3D"http://findicons.c=
om/files/icons/1156/fugue/16/leaf.png">=C2=A0<em style=3D"font-family:verda=
na,geneva,sans-serif;line-height:16px;color:green;background-color:rgb(255,=
255,255)">This message was created with 100% recycled electrons. Please thi=
nk twice before printing.</em></font></div></div></div>
</div>
<br>-----------------------------------------------------------------------=
-------<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=3D"http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target=
=3D"_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a><br>=
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href=3D"mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-develo=
pment@lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-development=
" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-de=
velopment</a><br>
<br></blockquote></div><br></div></div>

--001a1140e85ebaf0f60515e7cd35--