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
|
Return-Path: <murch@murch.one>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])
by lists.linuxfoundation.org (Postfix) with ESMTP id 6DB3DC0001
for <bitcoin-dev@lists.linuxfoundation.org>;
Tue, 25 May 2021 14:34:04 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp1.osuosl.org (Postfix) with ESMTP id 5CB3E83C7F
for <bitcoin-dev@lists.linuxfoundation.org>;
Tue, 25 May 2021 14:34:04 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: 0.802
X-Spam-Level:
X-Spam-Status: No, score=0.802 tagged_above=-999 required=5
tests=[BAYES_50=0.8, SPF_HELO_NONE=0.001, SPF_NONE=0.001]
autolearn=ham autolearn_force=no
Received: from smtp1.osuosl.org ([127.0.0.1])
by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id hTUUhgEsGyS8
for <bitcoin-dev@lists.linuxfoundation.org>;
Tue, 25 May 2021 14:34:03 +0000 (UTC)
X-Greylist: delayed 00:06:40 by SQLgrey-1.8.0
Received: from farbauti.uberspace.de (farbauti.uberspace.de [185.26.156.235])
by smtp1.osuosl.org (Postfix) with ESMTPS id 9915383C44
for <bitcoin-dev@lists.linuxfoundation.org>;
Tue, 25 May 2021 14:34:02 +0000 (UTC)
Received: (qmail 7984 invoked from network); 25 May 2021 14:27:18 -0000
Received: from localhost (HELO localhost) (127.0.0.1)
by farbauti.uberspace.de with SMTP; 25 May 2021 14:27:18 -0000
To: bitcoin-dev@lists.linuxfoundation.org
From: Murch <murch@murch.one>
Autocrypt: addr=murch@murch.one; keydata=
xsFNBFol4bABEACs1I2t7Z5/PBoRD+hMdg6uXcw3AfYuhRuhvDPo18PfJdiQ0CxKimcvkGIc
+tb7lvQ2vVzIuVDCj+6Jjx527arVXKsmzWYgOAPem8I8WICXhb67CsNrmAKN91UHTyay3+ao
WX1O3ZG3EodHAlEkJGMIE/+Ca0EfjDGmTXhGDzLxJB/0bE88h4Q3Rk3WshXjtzzgKrolW0+c
V+AYZ0XUY2L5zPxhIYccUFsD1p3AL0Ysiy6qpthVKQ+irbRW6HTZHHjit7uyfonESI02wp2Q
izqZf/VrQ1vlijqFxEuWhHsVbDgYrK4Ssx+lpmB2KD4PcswAeQ4torPb9q8ufz0Mof/ZwLIP
F4+LBVSi081T9IM7vUPcuTbwZPBqxBHWFHCeeaYlMpE5Od8/8rj4XyMMUSDlGtdKMQW2GdDI
ZcLF23gZ53unmegXqFdE1OytTvNyRBg6QwPFsbXUpLdJJE7mI9RQH8yTH1RCoRY1JLE0ko9H
iTGU+RsW4ApEvfFhnUJMP2vPxTfgqnSJ7WIRGL4nGicbqGyPlRAXHR15G38B0IzURY5GZIz+
meGSLoT06nUD7eSSJpuaNeMDxV7rq/eVcDjSmCN2AQ+DpsL1bIf+Ta+P6iNlorLH+gdFQN+w
eAfcaSKz4QjLyodmitqfGnN9vyitywSiofieNtwJnDUixiDkHwARAQABzRdNdXJjaCA8bXVy
Y2hAbXVyY2gub25lPsLBqwQTAQoAPgIbAQULCQgHAgYVCgkICwI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RgW/6ztINCX0N0AzR47M6qyJNkIah5StPntMWWnv8WJIEuIjjb0adm
t1P9Qj3WSoh4ah2jlm1zCKkx432mQJG6cMTn0rqV30z8clDTyACSPfz1p7GbjeDN5YseUYSV
qJEq2YjrWP0LIXJZOHO5i8QTVf4kVwyzIW6fnAReYaToPHogqV0uB/gsRKN8OmyTQy3PqzkJ
6JrJHAS+FTUJdGhngrvfPltYQS80d1y6FF8OnWRdRbA3pTEWZaqoXXJ261VsP1U8CoLoP/RC
lF5cl1GWZPYw4delMX0gDc1L82Eg7J4++C40I2/FlLnKBZURVHltxUQh/5aEH7Ig2IdOLmyf
tDXvC72WMEBAtk8MrkM3e3dPg6E=
Message-ID: <25ab1452-78a8-90f1-9b47-8de050d632d2@murch.one>
Date: Tue, 25 May 2021 10:27:06 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
protocol="application/pgp-signature";
boundary="QNBtipzX3w0P8SVnTdKRn2POWzVfjk6pW"
Cc: clara@chaincode.com
Subject: [bitcoin-dev] Improvement on Blockbuilding
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Tue, 25 May 2021 14:34:04 -0000
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--QNBtipzX3w0P8SVnTdKRn2POWzVfjk6pW
Content-Type: multipart/mixed; boundary="iEp97cqTsUT4pazMjdS1IYGtZVlgv4aS0";
protected-headers="v1"
From: Murch <murch@murch.one>
To: bitcoin-dev@lists.linuxfoundation.org
Cc: clara@chaincode.com
Message-ID: <25ab1452-78a8-90f1-9b47-8de050d632d2@murch.one>
Subject: Improvement on Blockbuilding
--iEp97cqTsUT4pazMjdS1IYGtZVlgv4aS0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Hi Bitcoin Devs,
We are writing to share with you a suggested improvement to the current
bitcoin core block building algorithm. In short, currently Bitcoin Core
uses a straightforward greedy algorithm which evaluates each
transaction=E2=80=99s effective fee rate in the context of its unconfirme=
d
ancestors. This overlooks situations in which multiple descendant
transactions could be grouped with their shared ancestors to form a more
attractive transaction set for block inclusion.
For example, if we have 4 transactions A,B,C, and D, with fee rates and
weights as follows
Tx Fee Weight
A 5 1
B 10 1
C 15 1
D 14 1
And dependencies:
=E2=80=A2 B is a descendant of A
=E2=80=A2 C is a descendant of B
=E2=80=A2 D is a descendant of A
The current algorithm will consider {A,B,C} best which has an effective
fee rate of 10. Our suggested algorithm will also consider {A,B,C,D},
which has an effective fee rate of 11.
Experimental data shows that our suggested algorithm did better on more
than 94% of blocks (99% for times of high congestion). We have also
compared the results to CBC and SAT Linear Programming solvers. The LP
solvers did slightly better, at the price of longer running times. Greg
Maxwell has also studied LP solvers in the past, and his results suggest
that better running times are possible.
The full details are given in this document, and we are happy to hear
any comment, critic or suggestion!
Best,
Mark and Clara
Full details:
https://gist.github.com/Xekyo/5cb413fe9f26dbce57abfd344ebbfaf2#file-candi=
date-set-based-block-building-md
Research Code:
https://github.com/Xekyo/blockbuilding
--iEp97cqTsUT4pazMjdS1IYGtZVlgv4aS0--
--QNBtipzX3w0P8SVnTdKRn2POWzVfjk6pW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEENfStpiPrn+OjvH72e6A1yluQFxMFAmCtCUAACgkQe6A1yluQ
FxOe3A//TTTMY9fTSloAit4s0sLN8kYvkuBydWT56e8cY7wGJV7PltIV2Xy5Rt4K
A+2XVGh4xJjctg2W0mibysbP71LJ5RyTZ24PY03A5adLGr/TYtNRFLN7cjqpuayl
ht4B8N5xa6o8QBR3X6I99mr/Zif03syHk4vPOZ6Rx1dEd2GZhVwYGi/6oNJBTRfq
iFiPPliRX1Gk1uLLNwTUWzjjEwVt6fzKFIbLhvq464IH/VDsdDYndIhSqVItvMkg
Io6PfBcBZRjA1crQwzoNEzMf7dG2WfYc+bT2d8VgGHwqnSrcQz8EFh7cAmzUS5D+
xYYVM8WloFz7y6PL0XSnoAVERuLr0xnoUj9BIIw6k0rqd2bVtxdBG++k40R/JG3L
M7e5EJbbVJemtDIvqaibEXiijTuUUivhVK5ClRhK5jXKrYML49qlKBwOkpdihg3W
6cYhyGL81vLE99BdkhrineYnVDgIrHWQnKYiOMWB6JR/KonlVRA09Ld93W6H4AQq
rZBR7CprYNzeqjpF1pn+hqJpOK6LTXLLEdsRluCC0AB9zKlpE7NsBVwTC5/YYgV7
8HrhsWO3oCK10hC558C01oeXmAU/jdUy6o8Ca7mGtK5GC7rjXduFpo8NjR14QR3q
uzPV1jyBxIhYhq0r7CLWCuaGylFh+oQXDohN9KTvpm/7xvYZ27o=
=I6SY
-----END PGP SIGNATURE-----
--QNBtipzX3w0P8SVnTdKRn2POWzVfjk6pW--
|