summaryrefslogtreecommitdiff
path: root/3a/a03c020223d3ce060e026cfa2592553ed12275
blob: e4a92ded79fc601a48c19a5b93524a5e3747d200 (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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
Return-Path: <antoine.riard@gmail.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
 by lists.linuxfoundation.org (Postfix) with ESMTP id B7E69C000D
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 19 Sep 2021 23:17:03 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp1.osuosl.org (Postfix) with ESMTP id 90122832E8
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 19 Sep 2021 23:17:03 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: smtp1.osuosl.org (amavisd-new);
 dkim=pass (2048-bit key) header.d=gmail.com
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 ccIzkUTt9_lI
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 19 Sep 2021 23:17:00 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.8.0
Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com
 [IPv6:2a00:1450:4864:20::42b])
 by smtp1.osuosl.org (Postfix) with ESMTPS id CAB5883298
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 19 Sep 2021 23:16:59 +0000 (UTC)
Received: by mail-wr1-x42b.google.com with SMTP id x6so25421478wrv.13
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 19 Sep 2021 16:16:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=xwodQuZ5GtZgknMeJMohAR9MR/VDW3B1RPteq71ll8M=;
 b=iGsWPONCpXKMTeh6gSlPepHEMLZRtO47UdcYcRnWWd0VQER5Lcg0fnP3ZtO2+nux9u
 hyWgsjwTUqvft4C8JRQxLT4SjVUgGbSyyR//10XVZ82EYFLaMOo4syM5Chjv4PIDhGm/
 4LGDTz4s7zm1qBYt9ElTmUdH8C9EcuUxQV4qXnZIURK9B4iZmop+g0MgObMCXvmOtOM/
 WyB131S7kjRAN1OkVWLdzrLcNiqs6yfi6H4MSy+KwktusZnMG7I8OVs7g+qsmpVgYuuk
 g8MbjmaN3Zi1wQ/HIO59fl4pzEXW0JfkVckeHH9nv03k5MH1bH0qdmyshTdpgsKnSwuH
 eEfg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=xwodQuZ5GtZgknMeJMohAR9MR/VDW3B1RPteq71ll8M=;
 b=NQAZFnbAs6Auk+wi3fYZ5VYcu7cMCtd6t4KzDYZ+qm5yR4bzF1zG7nnvkhqZZ7DerJ
 lAlzM9JdS/18Uy1HTtujjsl04ii48+9w1kTeiS+8QtdFP0Xlyn78eiH6F4dMNXaqphWe
 3YOnKzHgnXt67+mcQuayR1OezozwKv2cW506jPLqQzaHX0WRfgERAYNn5REUZtV+K6q6
 fc4rxPXEDTRo/x8RKCPr78cJTzKbrC7i7ptsJn8dTwtru1iSxRQlmfITruuP4kbydOmN
 +tukBStaXMWgq4vP+A+vJG7jxm5IyMYXvr2Pk3euAvICnhffqkOM71t8J5Az4D5yPOPK
 5CzQ==
X-Gm-Message-State: AOAM532cCCfu7Cpcw1Ahb2ivPR13yrC28QLu0PwlGv01V59m3kIuFIFf
 JC0YqX4TqHB0NTDBat//B68h2nlbxbsZUlt9WJSFNuvS/fI=
X-Google-Smtp-Source: ABdhPJx9NSk2SpLdaLhh+WCgEKG1Y7UBFMaYuRuXaG9lrfNsYcZwIp1c8XvSUaAHiPsJrkWGP+b3IsXSdkCbMa6FuHc=
X-Received: by 2002:a5d:56c4:: with SMTP id m4mr25369176wrw.225.1632093417859; 
 Sun, 19 Sep 2021 16:16:57 -0700 (PDT)
MIME-Version: 1.0
References: <CAFXO6=+cHyQKM2n9yn4EhwLZO+AUB0ZD81qWPxmpN27rjUoU3w@mail.gmail.com>
In-Reply-To: <CAFXO6=+cHyQKM2n9yn4EhwLZO+AUB0ZD81qWPxmpN27rjUoU3w@mail.gmail.com>
From: Antoine Riard <antoine.riard@gmail.com>
Date: Sun, 19 Sep 2021 19:16:45 -0400
Message-ID: <CALZpt+HpvmEHUEOgye34T6pVQ+wnKKn-_8cTJTQXYQb9t1jOTA@mail.gmail.com>
To: Gloria Zhao <gloriajzhao@gmail.com>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="00000000000069704d05cc615cdb"
X-Mailman-Approved-At: Mon, 20 Sep 2021 00:12:41 +0000
Subject: Re: [bitcoin-dev] Proposal: Package Mempool Accept and Package RBF
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: Sun, 19 Sep 2021 23:17:03 -0000

--00000000000069704d05cc615cdb
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Gloria,

> A package may contain transactions that are already in the mempool. We
> remove
> ("deduplicate") those transactions from the package for the purposes of
> package
> mempool acceptance. If a package is empty after deduplication, we do
> nothing.

IIUC, you have a package A+B+C submitted for acceptance and A is already in
your mempool. You trim out A from the package and then evaluate B+C.

I think this might be an issue if A is the higher-fee element of the ABC
package. B+C package fees might be under the mempool min fee and will be
rejected, potentially breaking the acceptance expectations of the package
issuer ?

Further, I think the dedup should be done on wtxid, as you might have
multiple valid witnesses. Though with varying vsizes and as such offering
different feerates.

E.g you're going to evaluate the package A+B and A' is already in your
mempool with a bigger valid witness. You trim A based on txid, then you
evaluate A'+B, which fails the fee checks. However, evaluating A+B would
have been a success.

AFAICT, the dedup rationale would be to save on CPU time/IO disk, to avoid
repeated signatures verification and parent UTXOs fetches ? Can we achieve
the same goal by bypassing tx-level checks for already-in txn while
conserving the package integrity for package-level checks ?

> Note that it's possible for the parents to be
> indirect
> descendants/ancestors of one another, or for parent and child to share a
> parent,
> so we cannot make any other topology assumptions.

I'm not clearly understanding the accepted topologies. By "parent and child
to share a parent", do you mean the set of transactions A, B, C, where B is
spending A and C is spending A and B would be correct ?

If yes, is there a width-limit introduced or we fallback on
MAX_PACKAGE_COUNT=3D25 ?

IIRC, one rationale to come with this topology limitation was to lower the
DoS risks when potentially deploying p2p packages.

Considering the current Core's mempool acceptance rules, I think CPFP
batching is unsafe for LN time-sensitive closure. A malicious tx-relay
jamming successful on one channel commitment transaction would contamine
the remaining commitments sharing the same package.

E.g, you broadcast the package A+B+C+D+E where A,B,C,D are commitment
transactions and E a shared CPFP. If a malicious A' transaction has a
better feerate than A, the whole package acceptance will fail. Even if A'
confirms in the following block,
the propagation and confirmation of B+C+D have been delayed. This could
carry on a loss of funds.

That said, if you're broadcasting commitment transactions without
time-sensitive HTLC outputs, I think the batching is effectively a fee
saving as you don't have to duplicate the CPFP.

IMHO, I'm leaning towards deploying during a first phase 1-parent/1-child.
I think it's the most conservative step still improving second-layer safety=
.

> *Rationale*:  It would be incorrect to use the fees of transactions that
are
> already in the mempool, as we do not want a transaction's fees to be
> double-counted for both its individual RBF and package RBF.

I'm unsure about the logical order of the checks proposed.

If A+B is submitted to replace A', where A pays 0 sats, B pays 200 sats and
A' pays 100 sats. If we apply the individual RBF on A, A+B acceptance
fails. For this reason I think the individual RBF should be bypassed and
only the package RBF apply ?

Note this situation is plausible, with current LN design, your counterparty
can have a commitment transaction with a better fee just by selecting a
higher `dust_limit_satoshis` than yours.

> Examples F and G [14] show the same package, but P1 is submitted
> individually before
> the package in example G. In example F, we can see that the 300vB package
> pays
> an additional 200sat in fees, which is not enough to pay for its own
> bandwidth
> (BIP125#4). In example G, we can see that P1 pays enough to replace M1,
but
> using P1's fees again during package submission would make it look like a
> 300sat
> increase for a 200vB package. Even including its fees and size would not
be
> sufficient in this example, since the 300sat looks like enough for the
300vB
> package. The calculcation after deduplication is 100sat increase for a
> package
> of size 200vB, which correctly fails BIP125#4. Assume all transactions
have
> a
> size of 100vB.

What problem are you trying to solve by the package feerate *after* dedup
rule ?

My understanding is that an in-package transaction might be already in the
mempool. Therefore, to compute a correct RBF penalty replacement, the vsize
of this transaction could be discarded lowering the cost of package RBF.

If we keep a "safe" dedup mechanism (see my point above), I think this
discount is justified, as the validation cost of node operators is paid for
?

> The child cannot replace mempool transactions.

Let's say you issue package A+B, then package C+B', where B' is a child of
both A and C. This rule fails the acceptance of C+B' ?

I think this is a footgunish API, as if a package issuer send the
multiple-parent-one-child package A,B,C,D where D is the child of A,B,C.
Then try to broadcast the higher-feerate C'+D' package, it should be
rejected. So it's breaking the naive broadcaster assumption that a
higher-feerate/higher-fee package always replaces ? And it might be unsafe
in protocols where states are symmetric. E.g a malicious counterparty
broadcasts first S+A, then you honestly broadcast S+B, where B pays better
fees.

> All mempool transactions to be replaced must signal replaceability.

I think this is unsafe for L2s if counterparties have malleability of the
child transaction. They can block your package replacement by opting-out
from RBF signaling. IIRC, LN's "anchor output" presents such an ability.

I think it's better to either fix inherited signaling or move towards
full-rbf.

> if a package parent has already been submitted, it would
> look
>like the child is spending a "new" unconfirmed input.

I think this is an issue brought by the trimming during the dedup phase. If
we preserve the package integrity, only re-using the tx-level checks
results of already in-mempool transactions to gain in CPU time we won't
have this issue. Package childs can add unconfirmed inputs as long as
they're in-package, the bip125 rule2 is only evaluated against parents ?

> However, we still achieve the same goal of requiring the
> replacement
> transactions to have a ancestor score at least as high as the original
> ones.

I'm not sure if this holds...

Let's say you have in-mempool A, B where A pays 10 sat/vb for 100 vbytes
and B pays 10 sat/vb for 100 vbytes. You have the candidate replacement D
spending both A and C where D pays 15sat/vb for 100 vbytes and C pays 1
sat/vb for 1000 vbytes.

Package A + B ancestor score is 10 sat/vb.

D has a higher feerate/absolute fee than B.

Package A + C + D ancestor score is ~ 3 sat/vb ((A's 1000 sats + C's 1000
sats + D's 1500 sats) /
A's 100 vb + C's 1000 vb + D's 100 vb)

Overall, this is a review through the lenses of LN requirements. I think
other L2 protocols/applications
could be candidates to using package accept/relay such as:
* https://github.com/lightninglabs/pool
* https://github.com/discreetlogcontracts/dlcspecs
* https://github.com/bitcoin-teleport/teleport-transactions/
* https://github.com/sapio-lang/sapio
* https://github.com/commerceblock/mercury/blob/master/doc/statechains.md
* https://github.com/revault/practical-revault

Thanks for rolling forward the ball on this subject.

Antoine

Le jeu. 16 sept. 2021 =C3=A0 03:55, Gloria Zhao via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> a =C3=A9crit :

> Hi there,
>
> I'm writing to propose a set of mempool policy changes to enable package
> validation (in preparation for package relay) in Bitcoin Core. These woul=
d
> not
> be consensus or P2P protocol changes. However, since mempool policy
> significantly affects transaction propagation, I believe this is relevant
> for
> the mailing list.
>
> My proposal enables packages consisting of multiple parents and 1 child.
> If you
> develop software that relies on specific transaction relay assumptions
> and/or
> are interested in using package relay in the future, I'm very interested
> to hear
> your feedback on the utility or restrictiveness of these package policies
> for
> your use cases.
>
> A draft implementation of this proposal can be found in [Bitcoin Core
> PR#22290][1].
>
> An illustrated version of this post can be found at
> https://gist.github.com/glozow/dc4e9d5c5b14ade7cdfac40f43adb18a.
> I have also linked the images below.
>
> ## Background
>
> Feel free to skip this section if you are already familiar with mempool
> policy
> and package relay terminology.
>
> ### Terminology Clarifications
>
> * Package =3D an ordered list of related transactions, representable by a
> Directed
>   Acyclic Graph.
> * Package Feerate =3D the total modified fees divided by the total virtua=
l
> size of
>   all transactions in the package.
>     - Modified fees =3D a transaction's base fees + fee delta applied by =
the
> user
>       with `prioritisetransaction`. As such, we expect this to vary acros=
s
> mempools.
>     - Virtual Size =3D the maximum of virtual sizes calculated using [BIP=
141
>       virtual size][2] and sigop weight. [Implemented here in Bitcoin
> Core][3].
>     - Note that feerate is not necessarily based on the base fees and
> serialized
>       size.
>
> * Fee-Bumping =3D user/wallet actions that take advantage of miner
> incentives to
>   boost a transaction's candidacy for inclusion in a block, including
> Child Pays
> for Parent (CPFP) and [BIP125][12] Replace-by-Fee (RBF). Our intention in
> mempool policy is to recognize when the new transaction is more economica=
l
> to
> mine than the original one(s) but not open DoS vectors, so there are some
> limitations.
>
> ### Policy
>
> The purpose of the mempool is to store the best (to be most
> incentive-compatible
> with miners, highest feerate) candidates for inclusion in a block. Miners
> use
> the mempool to build block templates. The mempool is also useful as a
> cache for
> boosting block relay and validation performance, aiding transaction relay=
,
> and
> generating feerate estimations.
>
> Ideally, all consensus-valid transactions paying reasonable fees should
> make it
> to miners through normal transaction relay, without any special
> connectivity or
> relationships with miners. On the other hand, nodes do not have unlimited
> resources, and a P2P network designed to let any honest node broadcast
> their
> transactions also exposes the transaction validation engine to DoS attack=
s
> from
> malicious peers.
>
> As such, for unconfirmed transactions we are considering for our mempool,
> we
> apply a set of validation rules in addition to consensus, primarily to
> protect
> us from resource exhaustion and aid our efforts to keep the highest fee
> transactions. We call this mempool _policy_: a set of (configurable,
> node-specific) rules that transactions must abide by in order to be
> accepted
> into our mempool. Transaction "Standardness" rules and mempool
> restrictions such
> as "too-long-mempool-chain" are both examples of policy.
>
> ### Package Relay and Package Mempool Accept
>
> In transaction relay, we currently consider transactions one at a time fo=
r
> submission to the mempool. This creates a limitation in the node's abilit=
y
> to
> determine which transactions have the highest feerates, since we cannot
> take
> into account descendants (i.e. cannot use CPFP) until all the transaction=
s
> are
> in the mempool. Similarly, we cannot use a transaction's descendants when
> considering it for RBF. When an individual transaction does not meet the
> mempool
> minimum feerate and the user isn't able to create a replacement transacti=
on
> directly, it will not be accepted by mempools.
>
> This limitation presents a security issue for applications and users
> relying on
> time-sensitive transactions. For example, Lightning and other protocols
> create
> UTXOs with multiple spending paths, where one counterparty's spending pat=
h
> opens
> up after a timelock, and users are protected from cheating scenarios as
> long as
> they redeem on-chain in time. A key security assumption is that all
> parties'
> transactions will propagate and confirm in a timely manner. This
> assumption can
> be broken if fee-bumping does not work as intended.
>
> The end goal for Package Relay is to consider multiple transactions at th=
e
> same
> time, e.g. a transaction with its high-fee child. This may help us better
> determine whether transactions should be accepted to our mempool,
> especially if
> they don't meet fee requirements individually or are better RBF candidate=
s
> as a
> package. A combination of changes to mempool validation logic, policy, an=
d
> transaction relay allows us to better propagate the transactions with the
> highest package feerates to miners, and makes fee-bumping tools more
> powerful
> for users.
>
> The "relay" part of Package Relay suggests P2P messaging changes, but a
> large
> part of the changes are in the mempool's package validation logic. We cal=
l
> this
> *Package Mempool Accept*.
>
> ### Previous Work
>
> * Given that mempool validation is DoS-sensitive and complex, it would be
>   dangerous to haphazardly tack on package validation logic. Many efforts
> have
> been made to make mempool validation less opaque (see [#16400][4],
> [#21062][5],
> [#22675][6], [#22796][7]).
> * [#20833][8] Added basic capabilities for package validation, test
> accepts only
>   (no submission to mempool).
> * [#21800][9] Implemented package ancestor/descendant limit checks for
> arbitrary
>   packages. Still test accepts only.
> * Previous package relay proposals (see [#16401][10], [#19621][11]).
>
> ### Existing Package Rules
>
> These are in master as introduced in [#20833][8] and [#21800][9]. I'll
> consider
> them as "given" in the rest of this document, though they can be changed,
> since
> package validation is test-accept only right now.
>
> 1. A package cannot exceed `MAX_PACKAGE_COUNT=3D25` count and
> `MAX_PACKAGE_SIZE=3D101KvB` total size [8]
>
>    *Rationale*: This is already enforced as mempool ancestor/descendant
> limits.
> Presumably, transactions in a package are all related, so exceeding this
> limit
> would mean that the package can either be split up or it wouldn't pass th=
is
> mempool policy.
>
> 2. Packages must be topologically sorted: if any dependencies exist betwe=
en
> transactions, parents must appear somewhere before children. [8]
>
> 3. A package cannot have conflicting transactions, i.e. none of them can
> spend
> the same inputs. This also means there cannot be duplicate transactions.
> [8]
>
> 4. When packages are evaluated against ancestor/descendant limits in a te=
st
> accept, the union of all of their descendants and ancestors is considered=
.
> This
> is essentially a "worst case" heuristic where every transaction in the
> package
> is treated as each other's ancestor and descendant. [8]
> Packages for which ancestor/descendant limits are accurately captured by
> this
> heuristic: [19]
>
> There are also limitations such as the fact that CPFP carve out is not
> applied
> to package transactions. #20833 also disables RBF in package validation;
> this
> proposal overrides that to allow packages to use RBF.
>
> ## Proposed Changes
>
> The next step in the Package Mempool Accept project is to implement
> submission
> to mempool, initially through RPC only. This allows us to test the
> submission
> logic before exposing it on P2P.
>
> ### Summary
>
> - Packages may contain already-in-mempool transactions.
> - Packages are 2 generations, Multi-Parent-1-Child.
> - Fee-related checks use the package feerate. This means that wallets can
> create a package that utilizes CPFP.
> - Parents are allowed to RBF mempool transactions with a set of rules
> similar
>   to BIP125. This enables a combination of CPFP and RBF, where a
> transaction's descendant fees pay for replacing mempool conflicts.
>
> There is a draft implementation in [#22290][1]. It is WIP, but feedback i=
s
> always welcome.
>
> ### Details
>
> #### Packages May Contain Already-in-Mempool Transactions
>
> A package may contain transactions that are already in the mempool. We
> remove
> ("deduplicate") those transactions from the package for the purposes of
> package
> mempool acceptance. If a package is empty after deduplication, we do
> nothing.
>
> *Rationale*: Mempools vary across the network. It's possible for a parent
> to be
> accepted to the mempool of a peer on its own due to differences in policy
> and
> fee market fluctuations. We should not reject or penalize the entire
> package for
> an individual transaction as that could be a censorship vector.
>
> #### Packages Are Multi-Parent-1-Child
>
> Only packages of a specific topology are permitted. Namely, a package is
> exactly
> 1 child with all of its unconfirmed parents. After deduplication, the
> package
> may be exactly the same, empty, 1 child, 1 child with just some of its
> unconfirmed parents, etc. Note that it's possible for the parents to be
> indirect
> descendants/ancestors of one another, or for parent and child to share a
> parent,
> so we cannot make any other topology assumptions.
>
> *Rationale*: This allows for fee-bumping by CPFP. Allowing multiple paren=
ts
> makes it possible to fee-bump a batch of transactions. Restricting
> packages to a
> defined topology is also easier to reason about and simplifies the
> validation
> logic greatly. Multi-parent-1-child allows us to think of the package as
> one big
> transaction, where:
>
> - Inputs =3D all the inputs of parents + inputs of the child that come fr=
om
>   confirmed UTXOs
> - Outputs =3D all the outputs of the child + all outputs of the parents t=
hat
>   aren't spent by other transactions in the package
>
> Examples of packages that follow this rule (variations of example A show
> some
> possibilities after deduplication): ![image][15]
>
> #### Fee-Related Checks Use Package Feerate
>
> Package Feerate =3D the total modified fees divided by the total virtual
> size of
> all transactions in the package.
>
> To meet the two feerate requirements of a mempool, i.e., the pre-configur=
ed
> minimum relay feerate (`minRelayTxFee`) and dynamic mempool minimum
> feerate, the
> total package feerate is used instead of the individual feerate. The
> individual
> transactions are allowed to be below feerate requirements if the package
> meets
> the feerate requirements. For example, the parent(s) in the package can
> have 0
> fees but be paid for by the child.
>
> *Rationale*: This can be thought of as "CPFP within a package," solving t=
he
> issue of a parent not meeting minimum fees on its own. This allows L2
> applications to adjust their fees at broadcast time instead of
> overshooting or
> risking getting stuck/pinned.
>
> We use the package feerate of the package *after deduplication*.
>
> *Rationale*:  It would be incorrect to use the fees of transactions that
> are
> already in the mempool, as we do not want a transaction's fees to be
> double-counted for both its individual RBF and package RBF.
>
> Examples F and G [14] show the same package, but P1 is submitted
> individually before
> the package in example G. In example F, we can see that the 300vB package
> pays
> an additional 200sat in fees, which is not enough to pay for its own
> bandwidth
> (BIP125#4). In example G, we can see that P1 pays enough to replace M1, b=
ut
> using P1's fees again during package submission would make it look like a
> 300sat
> increase for a 200vB package. Even including its fees and size would not =
be
> sufficient in this example, since the 300sat looks like enough for the
> 300vB
> package. The calculcation after deduplication is 100sat increase for a
> package
> of size 200vB, which correctly fails BIP125#4. Assume all transactions
> have a
> size of 100vB.
>
> #### Package RBF
>
> If a package meets feerate requirements as a package, the parents in the
> transaction are allowed to replace-by-fee mempool transactions. The child
> cannot
> replace mempool transactions. Multiple transactions can replace the same
> transaction, but in order to be valid, none of the transactions can try t=
o
> replace an ancestor of another transaction in the same package (which
> would thus
> make its inputs unavailable).
>
> *Rationale*: Even if we are using package feerate, a package will not
> propagate
> as intended if RBF still requires each individual transaction to meet the
> feerate requirements.
>
> We use a set of rules slightly modified from BIP125 as follows:
>
> ##### Signaling (Rule #1)
>
> All mempool transactions to be replaced must signal replaceability.
>
> *Rationale*: Package RBF signaling logic should be the same for package
> RBF and
> single transaction acceptance. This would be updated if single transactio=
n
> validation moves to full RBF.
>
> ##### New Unconfirmed Inputs (Rule #2)
>
> A package may include new unconfirmed inputs, but the ancestor feerate of
> the
> child must be at least as high as the ancestor feerates of every
> transaction
> being replaced. This is contrary to BIP125#2, which states "The replaceme=
nt
> transaction may only include an unconfirmed input if that input was
> included in
> one of the original transactions. (An unconfirmed input spends an output
> from a
> currently-unconfirmed transaction.)"
>
> *Rationale*: The purpose of BIP125#2 is to ensure that the replacement
> transaction has a higher ancestor score than the original transaction(s)
> (see
> [comment][13]). Example H [16] shows how adding a new unconfirmed input
> can lower the
> ancestor score of the replacement transaction. P1 is trying to replace M1=
,
> and
> spends an unconfirmed output of M2. P1 pays 800sat, M1 pays 600sat, and M=
2
> pays
> 100sat. Assume all transactions have a size of 100vB. While, in isolation=
,
> P1
> looks like a better mining candidate than M1, it must be mined with M2, s=
o
> its
> ancestor feerate is actually 4.5sat/vB.  This is lower than M1's ancestor
> feerate, which is 6sat/vB.
>
> In package RBF, the rule analogous to BIP125#2 would be "none of the
> transactions in the package can spend new unconfirmed inputs." Example J
> [17] shows
> why, if any of the package transactions have ancestors, package feerate i=
s
> no
> longer accurate. Even though M2 and M3 are not ancestors of P1 (which is
> the
> replacement transaction in an RBF), we're actually interested in the enti=
re
> package. A miner should mine M1 which is 5sat/vB instead of M2, M3, P1,
> P2, and
> P3, which is only 4sat/vB. The Package RBF rule cannot be loosened to onl=
y
> allow
> the child to have new unconfirmed inputs, either, because it can still
> cause us
> to overestimate the package's ancestor score.
>
> However, enforcing a rule analogous to BIP125#2 would not only make
> Package RBF
> less useful, but would also break Package RBF for packages with parents
> already
> in the mempool: if a package parent has already been submitted, it would
> look
> like the child is spending a "new" unconfirmed input. In example K [18],
> we're
> looking to replace M1 with the entire package including P1, P2, and P3. W=
e
> must
> consider the case where one of the parents is already in the mempool (in
> this
> case, P2), which means we must allow P3 to have new unconfirmed inputs.
> However,
> M2 lowers the ancestor score of P3 to 4.3sat/vB, so we should not replace
> M1
> with this package.
>
> Thus, the package RBF rule regarding new unconfirmed inputs is less stric=
t
> than
> BIP125#2. However, we still achieve the same goal of requiring the
> replacement
> transactions to have a ancestor score at least as high as the original
> ones. As
> a result, the entire package is required to be a higher feerate mining
> candidate
> than each of the replaced transactions.
>
> Another note: the [comment][13] above the BIP125#2 code in the original R=
BF
> implementation suggests that the rule was intended to be temporary.
>
> ##### Absolute Fee (Rule #3)
>
> The package must increase the absolute fee of the mempool, i.e. the total
> fees
> of the package must be higher than the absolute fees of the mempool
> transactions
> it replaces. Combined with the CPFP rule above, this differs from BIP125
> Rule #3
> - an individual transaction in the package may have lower fees than the
>   transaction(s) it is replacing. In fact, it may have 0 fees, and the
> child
> pays for RBF.
>
> ##### Feerate (Rule #4)
>
> The package must pay for its own bandwidth; the package feerate must be
> higher
> than the replaced transactions by at least minimum relay feerate
> (`incrementalRelayFee`). Combined with the CPFP rule above, this differs
> from
> BIP125 Rule #4 - an individual transaction in the package can have a lowe=
r
> feerate than the transaction(s) it is replacing. In fact, it may have 0
> fees,
> and the child pays for RBF.
>
> ##### Total Number of Replaced Transactions (Rule #5)
>
> The package cannot replace more than 100 mempool transactions. This is
> identical
> to BIP125 Rule #5.
>
> ### Expected FAQs
>
> 1. Is it possible for only some of the package to make it into the mempoo=
l?
>
>    Yes, it is. However, since we evict transactions from the mempool by
> descendant score and the package child is supposed to be sponsoring the
> fees of
> its parents, the most common scenario would be all-or-nothing. This is
> incentive-compatible. In fact, to be conservative, package validation
> should
> begin by trying to submit all of the transactions individually, and only
> use the
> package mempool acceptance logic if the parents fail due to low feerate.
>
> 2. Should we allow packages to contain already-confirmed transactions?
>
>     No, for practical reasons. In mempool validation, we actually aren't
> able to
> tell with 100% confidence if we are looking at a transaction that has
> already
> confirmed, because we look up inputs using a UTXO set. If we have
> historical
> block data, it's possible to look for it, but this is inefficient, not
> always
> possible for pruning nodes, and unnecessary because we're not going to do
> anything with the transaction anyway. As such, we already have the
> expectation
> that transaction relay is somewhat "stateful" i.e. nobody should be
> relaying
> transactions that have already been confirmed. Similarly, we shouldn't be
> relaying packages that contain already-confirmed transactions.
>
> [1]: https://github.com/bitcoin/bitcoin/pull/22290
> [2]:
> https://github.com/bitcoin/bips/blob/1f0b563738199ca60d32b4ba779797fc97d0=
40fe/bip-0141.mediawiki#transaction-size-calculations
> [3]:
> https://github.com/bitcoin/bitcoin/blob/94f83534e4b771944af7d9ed0f40746f3=
92eb75e/src/policy/policy.cpp#L282
> [4]: https://github.com/bitcoin/bitcoin/pull/16400
> [5]: https://github.com/bitcoin/bitcoin/pull/21062
> [6]: https://github.com/bitcoin/bitcoin/pull/22675
> [7]: https://github.com/bitcoin/bitcoin/pull/22796
> [8]: https://github.com/bitcoin/bitcoin/pull/20833
> [9]: https://github.com/bitcoin/bitcoin/pull/21800
> [10]: https://github.com/bitcoin/bitcoin/pull/16401
> [11]: https://github.com/bitcoin/bitcoin/pull/19621
> [12]: https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki
> [13]:
> https://github.com/bitcoin/bitcoin/pull/6871/files#diff-34d21af3c614ea3ce=
e120df276c9c4ae95053830d7f1d3deaf009a4625409ad2R1101-R1104
> [14]:
> https://user-images.githubusercontent.com/25183001/133567078-075a971c-061=
9-4339-9168-b41fd2b90c28.png
> [15]:
> https://user-images.githubusercontent.com/25183001/132856734-fc17da75-f87=
5-44bb-b954-cb7a1725cc0d.png
> [16]:
> https://user-images.githubusercontent.com/25183001/133567347-a3e2e4a8-ae9=
c-49f8-abb9-81e8e0aba224.png
> [17]:
> https://user-images.githubusercontent.com/25183001/133567370-21566d0e-36c=
8-4831-b1a8-706634540af3.png
> [18]:
> https://user-images.githubusercontent.com/25183001/133567444-bfff1142-439=
f-4547-800a-2ba2b0242bcb.png
> [19]:
> https://user-images.githubusercontent.com/25183001/133456219-0bb447cb-dcb=
4-4a31-b9c1-7d86205b68bc.png
> [20]:
> https://user-images.githubusercontent.com/25183001/132857787-7b7c6f56-af9=
6-44c8-8d78-983719888c19.png
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>

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

<div dir=3D"ltr">Hi Gloria,<br><br>&gt; A package may contain transactions =
that are already in the mempool. We<br>&gt; remove<br>&gt; (&quot;deduplica=
te&quot;) those transactions from the package for the purposes of<br>&gt; p=
ackage<br>&gt; mempool acceptance. If a package is empty after deduplicatio=
n, we do<br>&gt; nothing.<br><br>IIUC, you have a package A+B+C submitted f=
or acceptance and A is already in your mempool. You trim out A from the pac=
kage and then evaluate B+C.<br><br>I think this might be an issue if A is t=
he higher-fee element of the ABC package. B+C package fees might be under t=
he mempool min fee and will be rejected, potentially breaking the acceptanc=
e expectations of the package issuer ?<br><br>Further, I think the dedup sh=
ould be done on wtxid, as you might have multiple valid witnesses. Though w=
ith varying vsizes and as such offering different feerates.<br><br>E.g you&=
#39;re going to evaluate the package A+B and A&#39; is already in your memp=
ool with a bigger valid witness. You trim A based on txid, then you evaluat=
e A&#39;+B, which fails the fee checks. However, evaluating A+B would have =
been a success.<br><br>AFAICT, the dedup rationale would be to save on CPU =
time/IO disk, to avoid repeated signatures verification and parent UTXOs fe=
tches ? Can we achieve the same goal by bypassing tx-level checks for alrea=
dy-in txn while conserving the package integrity for package-level checks ?=
<br><br>&gt; Note that it&#39;s possible for the parents to be<br>&gt; indi=
rect<br>&gt; descendants/ancestors of one another, or for parent and child =
to share a<br>&gt; parent,<br>&gt; so we cannot make any other topology ass=
umptions.<br><br>I&#39;m not clearly understanding the accepted topologies.=
 By &quot;parent and child to share a parent&quot;, do you mean the set of =
transactions A, B, C, where B is spending A and C is spending A and B would=
 be correct ?<br><br>If yes, is there a width-limit introduced or we fallba=
ck on MAX_PACKAGE_COUNT=3D25 ?<br><br>IIRC, one rationale to come with this=
 topology limitation was to lower the DoS risks when potentially deploying =
p2p packages.<br><br>Considering the current Core&#39;s mempool acceptance =
rules, I think CPFP batching is unsafe for LN time-sensitive closure. A mal=
icious tx-relay jamming successful on one channel commitment transaction wo=
uld contamine the remaining commitments sharing the same package.<br><br>E.=
g, you broadcast the package A+B+C+D+E where A,B,C,D are commitment transac=
tions and E a shared CPFP. If a malicious A&#39; transaction has a better f=
eerate than A, the whole package acceptance will fail. Even if A&#39; confi=
rms in the following block, <br>the propagation and confirmation of B+C+D h=
ave been delayed. This could carry on a loss of funds.<br><br>That said, if=
 you&#39;re broadcasting commitment transactions without time-sensitive HTL=
C outputs, I think the batching is effectively a fee saving as you don&#39;=
t have to duplicate the CPFP.<br><br>IMHO, I&#39;m leaning towards deployin=
g during a first phase 1-parent/1-child. I think it&#39;s the most conserva=
tive step still improving second-layer safety.<br><br>&gt; *Rationale*: =C2=
=A0It would be incorrect to use the fees of transactions that are<br>&gt; a=
lready in the mempool, as we do not want a transaction&#39;s fees to be<br>=
&gt; double-counted for both its individual RBF and package RBF.<br><br>I&#=
39;m unsure about the logical order of the checks proposed.<br><br>If A+B i=
s submitted to replace A&#39;, where A pays 0 sats, B pays 200 sats and A&#=
39; pays 100 sats. If we apply the individual RBF on A, A+B acceptance fail=
s. For this reason I think the individual RBF should be bypassed and only t=
he package RBF apply ? <br><br>Note this situation is plausible, with curre=
nt LN design, your counterparty can have a commitment transaction with a be=
tter fee just by selecting a higher `dust_limit_satoshis` than yours.<br><b=
r>&gt; Examples F and G [14] show the same package, but P1 is submitted<br>=
&gt; individually before<br>&gt; the package in example G. In example F, we=
 can see that the 300vB package<br>&gt; pays<br>&gt; an additional 200sat i=
n fees, which is not enough to pay for its own<br>&gt; bandwidth<br>&gt; (B=
IP125#4). In example G, we can see that P1 pays enough to replace M1, but<b=
r>&gt; using P1&#39;s fees again during package submission would make it lo=
ok like a<br>&gt; 300sat<br>&gt; increase for a 200vB package. Even includi=
ng its fees and size would not be<br>&gt; sufficient in this example, since=
 the 300sat looks like enough for the 300vB<br>&gt; package. The calculcati=
on after deduplication is 100sat increase for a<br>&gt; package<br>&gt; of =
size 200vB, which correctly fails BIP125#4. Assume all transactions have<br=
>&gt; a<br>&gt; size of 100vB.<br><br>What problem are you trying to solve =
by the package feerate *after* dedup rule ?<br><br>My understanding is that=
 an in-package transaction might be already in the mempool. Therefore, to c=
ompute a correct RBF penalty replacement, the vsize of this transaction cou=
ld be discarded lowering the cost of package RBF.<br><br>If we keep a &quot=
;safe&quot; dedup mechanism (see my point above), I think this discount is =
justified, as the validation cost of node operators is paid for ?<br><br>&g=
t; The child cannot replace mempool transactions.<br><br>Let&#39;s say you =
issue package A+B, then package C+B&#39;, where B&#39; is a child of both A=
 and C. This rule fails the acceptance of C+B&#39; ?<br><br>I think this is=
 a footgunish API, as if a package issuer send the multiple-parent-one-chil=
d package A,B,C,D where D is the child of A,B,C. Then try to broadcast the =
higher-feerate C&#39;+D&#39; package, it should be rejected. So it&#39;s br=
eaking the naive broadcaster assumption that a higher-feerate/higher-fee pa=
ckage always replaces ? And it might be unsafe in protocols where states ar=
e symmetric. E.g a malicious counterparty broadcasts first S+A, then you ho=
nestly broadcast S+B, where B pays better fees.<br><br>&gt; All mempool tra=
nsactions to be replaced must signal replaceability.<br><br>I think this is=
 unsafe for L2s if counterparties have malleability of the child transactio=
n. They can block your package replacement by opting-out from RBF signaling=
. IIRC, LN&#39;s &quot;anchor output&quot; presents such an ability.<br><br=
>I think it&#39;s better to either fix inherited signaling or move towards =
full-rbf.<br><br>&gt; if a package parent has already been submitted, it wo=
uld<br>&gt; look<br>&gt;like the child is spending a &quot;new&quot; unconf=
irmed input.<br><br>I think this is an issue brought by the trimming during=
 the dedup phase. If we preserve the package integrity, only re-using the t=
x-level checks results of already in-mempool transactions to gain in CPU ti=
me we won&#39;t have this issue. Package childs can add unconfirmed inputs =
as long as they&#39;re in-package, the bip125 rule2 is only evaluated again=
st parents ?<br><br>&gt; However, we still achieve the same goal of requiri=
ng the<br>&gt; replacement<br>&gt; transactions to have a ancestor score at=
 least as high as the original<br>&gt; ones.<br><br>I&#39;m not sure if thi=
s holds...<br><br>Let&#39;s say you have in-mempool A, B where A pays 10 sa=
t/vb for 100 vbytes and B pays 10 sat/vb for 100 vbytes. You have the candi=
date replacement D spending both A and C where D pays 15sat/vb for 100 vbyt=
es and C pays 1 sat/vb for 1000 vbytes.<br><br>Package A + B ancestor score=
 is 10 sat/vb.<br><br>D has a higher feerate/absolute fee than B.<br><br>Pa=
ckage A + C + D ancestor score is ~ 3 sat/vb ((A&#39;s 1000 sats + C&#39;s =
1000 sats + D&#39;s 1500 sats) / <br>A&#39;s 100 vb + C&#39;s 1000 vb + D&#=
39;s 100 vb)<br><br>Overall, this is a review through the lenses of LN requ=
irements. I think other L2 protocols/applications<br>could be candidates to=
 using package accept/relay such as:<br>* <a href=3D"https://github.com/lig=
htninglabs/pool">https://github.com/lightninglabs/pool</a><br>* <a href=3D"=
https://github.com/discreetlogcontracts/dlcspecs">https://github.com/discre=
etlogcontracts/dlcspecs</a><br>* <a href=3D"https://github.com/bitcoin-tele=
port/teleport-transactions/">https://github.com/bitcoin-teleport/teleport-t=
ransactions/</a><br>* <a href=3D"https://github.com/sapio-lang/sapio">https=
://github.com/sapio-lang/sapio</a><br>* <a href=3D"https://github.com/comme=
rceblock/mercury/blob/master/doc/statechains.md">https://github.com/commerc=
eblock/mercury/blob/master/doc/statechains.md</a><br>* <a href=3D"https://g=
ithub.com/revault/practical-revault">https://github.com/revault/practical-r=
evault</a><br><br>Thanks for rolling forward the ball on this subject.<br><=
br>Antoine<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">Le=C2=A0jeu. 16 sept. 2021 =C3=A0=C2=A003:55, Gloria Zhao v=
ia bitcoin-dev &lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org"=
>bitcoin-dev@lists.linuxfoundation.org</a>&gt; a =C3=A9crit=C2=A0:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hi ther=
e,<br><br>I&#39;m writing to propose a set of mempool policy changes to ena=
ble package<br>validation (in preparation for package relay) in Bitcoin Cor=
e. These would not<br>be consensus or P2P protocol changes. However, since =
mempool policy<br>significantly affects transaction propagation, I believe =
this is relevant for<br>the mailing list.<br><br>My proposal enables packag=
es consisting of multiple parents and 1 child. If you<br>develop software t=
hat relies on specific transaction relay assumptions and/or<br>are interest=
ed in using package relay in the future, I&#39;m very interested to hear<br=
>your feedback on the utility or restrictiveness of these package policies =
for<br>your use cases.<br><br>A draft implementation of this proposal can b=
e found in [Bitcoin Core<br>PR#22290][1].<br><br>An illustrated version of =
this post can be found at<br><div><a href=3D"https://gist.github.com/glozow=
/dc4e9d5c5b14ade7cdfac40f43adb18a" target=3D"_blank">https://gist.github.co=
m/glozow/dc4e9d5c5b14ade7cdfac40f43adb18a</a>.</div><div>I have also linked=
 the images below.</div><br>## Background<br><br>Feel free to skip this sec=
tion if you are already familiar with mempool policy<br>and package relay t=
erminology.<br><br>### Terminology Clarifications<br><br>* Package =3D an o=
rdered list of related transactions, representable by a Directed<br>=C2=A0 =
Acyclic Graph.<br>* Package Feerate =3D the total modified fees divided by =
the total virtual size of<br>=C2=A0 all transactions in the package.<br>=C2=
=A0 =C2=A0 - Modified fees =3D a transaction&#39;s base fees + fee delta ap=
plied by the user<br>=C2=A0 =C2=A0 =C2=A0 with `prioritisetransaction`. As =
such, we expect this to vary across<br>mempools.<br>=C2=A0 =C2=A0 - Virtual=
 Size =3D the maximum of virtual sizes calculated using [BIP141<br>=C2=A0 =
=C2=A0 =C2=A0 virtual size][2] and sigop weight. [Implemented here in Bitco=
in Core][3].<br>=C2=A0 =C2=A0 - Note that feerate is not necessarily based =
on the base fees and serialized<br>=C2=A0 =C2=A0 =C2=A0 size.<br><br>* Fee-=
Bumping =3D user/wallet actions that take advantage of miner incentives to<=
br>=C2=A0 boost a transaction&#39;s candidacy for inclusion in a block, inc=
luding Child Pays<br>for Parent (CPFP) and [BIP125][12] Replace-by-Fee (RBF=
). Our intention in<br>mempool policy is to recognize when the new transact=
ion is more economical to<br>mine than the original one(s) but not open DoS=
 vectors, so there are some<br>limitations.<br><br>### Policy<br><br>The pu=
rpose of the mempool is to store the best (to be most incentive-compatible<=
br>with miners, highest feerate) candidates for inclusion in a block. Miner=
s use<br>the mempool to build block templates. The mempool is also useful a=
s a cache for<br>boosting block relay and validation performance, aiding tr=
ansaction relay, and<br>generating feerate estimations.<br><br>Ideally, all=
 consensus-valid transactions paying reasonable fees should make it<br>to m=
iners through normal transaction relay, without any special connectivity or=
<br>relationships with miners. On the other hand, nodes do not have unlimit=
ed<br>resources, and a P2P network designed to let any honest node broadcas=
t their<br>transactions also exposes the transaction validation engine to D=
oS attacks from<br>malicious peers.<br><br>As such, for unconfirmed transac=
tions we are considering for our mempool, we<br>apply a set of validation r=
ules in addition to consensus, primarily to protect<br>us from resource exh=
austion and aid our efforts to keep the highest fee<br>transactions. We cal=
l this mempool _policy_: a set of (configurable,<br>node-specific) rules th=
at transactions must abide by in order to be accepted<br>into our mempool. =
Transaction &quot;Standardness&quot; rules and mempool restrictions such<br=
>as &quot;too-long-mempool-chain&quot; are both examples of policy.<br><br>=
### Package Relay and Package Mempool Accept<br><br>In transaction relay, w=
e currently consider transactions one at a time for<br>submission to the me=
mpool. This creates a limitation in the node&#39;s ability to<br>determine =
which transactions have the highest feerates, since we cannot take<br>into =
account descendants (i.e. cannot use CPFP) until all the transactions are<b=
r>in the mempool. Similarly, we cannot use a transaction&#39;s descendants =
when<br>considering it for RBF. When an individual transaction does not mee=
t the mempool<br>minimum feerate and the user isn&#39;t able to create a re=
placement transaction<br>directly, it will not be accepted by mempools.<br>=
<br>This limitation presents a security issue for applications and users re=
lying on<br>time-sensitive transactions. For example, Lightning and other p=
rotocols create<br>UTXOs with multiple spending paths, where one counterpar=
ty&#39;s spending path opens<br>up after a timelock, and users are protecte=
d from cheating scenarios as long as<br>they redeem on-chain in time. A key=
 security assumption is that all parties&#39;<br>transactions will propagat=
e and confirm in a timely manner. This assumption can<br>be broken if fee-b=
umping does not work as intended.<br><br>The end goal for Package Relay is =
to consider multiple transactions at the same<br>time, e.g. a transaction w=
ith its high-fee child. This may help us better<br>determine whether transa=
ctions should be accepted to our mempool, especially if<br>they don&#39;t m=
eet fee requirements individually or are better RBF candidates as a<br>pack=
age. A combination of changes to mempool validation logic, policy, and<br>t=
ransaction relay allows us to better propagate the transactions with the<br=
>highest package feerates to miners, and makes fee-bumping tools more power=
ful<br>for users.<br><br>The &quot;relay&quot; part of Package Relay sugges=
ts P2P messaging changes, but a large<br>part of the changes are in the mem=
pool&#39;s package validation logic. We call this<br>*Package Mempool Accep=
t*.<br><br>### Previous Work<br><br>* Given that mempool validation is DoS-=
sensitive and complex, it would be<br>=C2=A0 dangerous to haphazardly tack =
on package validation logic. Many efforts have<br>been made to make mempool=
 validation less opaque (see [#16400][4], [#21062][5],<br>[#22675][6], [#22=
796][7]).<br>* [#20833][8] Added basic capabilities for package validation,=
 test accepts only<br>=C2=A0 (no submission to mempool).<br>* [#21800][9] I=
mplemented package ancestor/descendant limit checks for arbitrary<br>=C2=A0=
 packages. Still test accepts only.<br>* Previous package relay proposals (=
see [#16401][10], [#19621][11]).<br><br>### Existing Package Rules<br><br>T=
hese are in master as introduced in [#20833][8] and [#21800][9]. I&#39;ll c=
onsider<br>them as &quot;given&quot; in the rest of this document, though t=
hey can be changed, since<br>package validation is test-accept only right n=
ow.<br><br>1. A package cannot exceed `MAX_PACKAGE_COUNT=3D25` count and<br=
>`MAX_PACKAGE_SIZE=3D101KvB` total size [8]<br><br>=C2=A0 =C2=A0*Rationale*=
: This is already enforced as mempool ancestor/descendant limits.<br>Presum=
ably, transactions in a package are all related, so exceeding this limit<br=
>would mean that the package can either be split up or it wouldn&#39;t pass=
 this<br>mempool policy.<br><br>2. Packages must be topologically sorted: i=
f any dependencies exist between<br>transactions, parents must appear somew=
here before children. [8]<br><br>3. A package cannot have conflicting trans=
actions, i.e. none of them can spend<br><div>the same inputs. This also mea=
ns there cannot be duplicate transactions. [8]</div><div><br></div>4. When =
packages are evaluated against ancestor/descendant limits in a test<br>acce=
pt, the union of all of their descendants and ancestors is considered. This=
<br>is essentially a &quot;worst case&quot; heuristic where every transacti=
on in the package<br>is treated as each other&#39;s ancestor and descendant=
.  [8]<br>Packages for which ancestor/descendant limits are accurately capt=
ured by this<br><div>heuristic: [19]</div><br>There are also limitations su=
ch as the fact that CPFP carve out is not applied<br>to package transaction=
s. #20833 also disables RBF in package validation; this<br>proposal overrid=
es that to allow packages to use RBF.<br><br>## Proposed Changes<br><br>The=
 next step in the Package Mempool Accept project is to implement submission=
<br>to mempool, initially through RPC only. This allows us to test the subm=
ission<br>logic before exposing it on P2P.<br><br>### Summary<br><br>- Pack=
ages may contain already-in-mempool transactions.<br>- Packages are 2 gener=
ations, Multi-Parent-1-Child.<br>- Fee-related checks use the package feera=
te. This means that wallets can<br>create a package that utilizes CPFP.<br>=
- Parents are allowed to RBF mempool transactions with a set of rules simil=
ar<br>=C2=A0 to BIP125. This enables a combination of CPFP and RBF, where a=
<br>transaction&#39;s descendant fees pay for replacing mempool conflicts.<=
br><br>There is a draft implementation in [#22290][1]. It is WIP, but feedb=
ack is<br>always welcome.<br><br>### Details<br><br>#### Packages May Conta=
in Already-in-Mempool Transactions<br><br>A package may contain transaction=
s that are already in the mempool. We remove<br>(&quot;deduplicate&quot;) t=
hose transactions from the package for the purposes of package<br>mempool a=
cceptance. If a package is empty after deduplication, we do nothing.<br><br=
>*Rationale*: Mempools vary across the network. It&#39;s possible for a par=
ent to be<br>accepted to the mempool of a peer on its own due to difference=
s in policy and<br>fee market fluctuations. We should not reject or penaliz=
e the entire package for<br>an individual transaction as that could be a ce=
nsorship vector.<br><br>#### Packages Are Multi-Parent-1-Child<br><br>Only =
packages of a specific topology are permitted. Namely, a package is exactly=
<br>1 child with all of its unconfirmed parents. After deduplication, the p=
ackage<br>may be exactly the same, empty, 1 child, 1 child with just some o=
f its<br>unconfirmed parents, etc. Note that it&#39;s possible for the pare=
nts to be indirect<br>descendants/ancestors of one another, or for parent a=
nd child to share a parent,<br>so we cannot make any other topology assumpt=
ions.<br><br>*Rationale*: This allows for fee-bumping by CPFP. Allowing mul=
tiple parents<br>makes it possible to fee-bump a batch of transactions. Res=
tricting packages to a<br>defined topology is also easier to reason about a=
nd simplifies the validation<br>logic greatly. Multi-parent-1-child allows =
us to think of the package as one big<br>transaction, where:<br><br>- Input=
s =3D all the inputs of parents + inputs of the child that come from<br>=C2=
=A0 confirmed UTXOs<br>- Outputs =3D all the outputs of the child + all out=
puts of the parents that<br>=C2=A0 aren&#39;t spent by other transactions i=
n the package<br><br>Examples of packages that follow this rule (variations=
 of example A show some<br>possibilities after deduplication): ![image][15]=
<br><br>#### Fee-Related Checks Use Package Feerate<br><br>Package Feerate =
=3D the total modified fees divided by the total virtual size of<br>all tra=
nsactions in the package.<br><br>To meet the two feerate requirements of a =
mempool, i.e., the pre-configured<br>minimum relay feerate (`minRelayTxFee`=
) and dynamic mempool minimum feerate, the<br>total package feerate is used=
 instead of the individual feerate. The individual<br>transactions are allo=
wed to be below feerate requirements if the package meets<br>the feerate re=
quirements. For example, the parent(s) in the package can have 0<br>fees bu=
t be paid for by the child.<br><br>*Rationale*: This can be thought of as &=
quot;CPFP within a package,&quot; solving the<br>issue of a parent not meet=
ing minimum fees on its own. This allows L2<br>applications to adjust their=
 fees at broadcast time instead of overshooting or<br>risking getting stuck=
/pinned.<br><br>We use the package feerate of the package *after deduplicat=
ion*.<br><br>*Rationale*: =C2=A0It would be incorrect to use the fees of tr=
ansactions that are<br>already in the mempool, as we do not want a transact=
ion&#39;s fees to be<br>double-counted for both its individual RBF and pack=
age RBF.<br><br>Examples F and G [14] show the same package, but P1 is subm=
itted individually before<br>the package in example G. In example F, we can=
 see that the 300vB package pays<br>an additional 200sat in fees, which is =
not enough to pay for its own bandwidth<br>(BIP125#4). In example G, we can=
 see that P1 pays enough to replace M1, but<br>using P1&#39;s fees again du=
ring package submission would make it look like a 300sat<br>increase for a =
200vB package. Even including its fees and size would not be<br>sufficient =
in this example, since the 300sat looks like enough for the 300vB<br>packag=
e. The calculcation after deduplication is 100sat increase for a package<br=
>of size 200vB, which correctly fails BIP125#4. Assume all transactions hav=
e a<br>size of 100vB.<br><br>#### Package RBF<br><br>If a package meets fee=
rate requirements as a package, the parents in the<br>transaction are allow=
ed to replace-by-fee mempool transactions. The child cannot<br>replace memp=
ool transactions. Multiple transactions can replace the same<br>transaction=
, but in order to be valid, none of the transactions can try to<br>replace =
an ancestor of another transaction in the same package (which would thus<br=
>make its inputs unavailable).<br><br>*Rationale*: Even if we are using pac=
kage feerate, a package will not propagate<br>as intended if RBF still requ=
ires each individual transaction to meet the<br>feerate requirements.<br><b=
r>We use a set of rules slightly modified from BIP125 as follows:<br><br>##=
### Signaling (Rule #1)<br><br>All mempool transactions to be replaced must=
 signal replaceability.<br><br>*Rationale*: Package RBF signaling logic sho=
uld be the same for package RBF and<br>single transaction acceptance. This =
would be updated if single transaction<br>validation moves to full RBF.<br>=
<br>##### New Unconfirmed Inputs (Rule #2)<br><br>A package may include new=
 unconfirmed inputs, but the ancestor feerate of the<br>child must be at le=
ast as high as the ancestor feerates of every transaction<br>being replaced=
. This is contrary to BIP125#2, which states &quot;The replacement<br>trans=
action may only include an unconfirmed input if that input was included in<=
br>one of the original transactions. (An unconfirmed input spends an output=
 from a<br>currently-unconfirmed transaction.)&quot;<br><br>*Rationale*: Th=
e purpose of BIP125#2 is to ensure that the replacement<br>transaction has =
a higher ancestor score than the original transaction(s) (see<br>[comment][=
13]). Example H [16] shows how adding a new unconfirmed input can lower the=
<br>ancestor score of the replacement transaction. P1 is trying to replace =
M1, and<br>spends an unconfirmed output of M2. P1 pays 800sat, M1 pays 600s=
at, and M2 pays<br>100sat. Assume all transactions have a size of 100vB. Wh=
ile, in isolation, P1<br>looks like a better mining candidate than M1, it m=
ust be mined with M2, so its<br>ancestor feerate is actually 4.5sat/vB.=C2=
=A0 This is lower than M1&#39;s ancestor<br>feerate, which is 6sat/vB.<br><=
br>In package RBF, the rule analogous to BIP125#2 would be &quot;none of th=
e<br>transactions in the package can spend new unconfirmed inputs.&quot; Ex=
ample J [17] shows<br>why, if any of the package transactions have ancestor=
s, package feerate is no<br>longer accurate. Even though M2 and M3 are not =
ancestors of P1 (which is the<br>replacement transaction in an RBF), we&#39=
;re actually interested in the entire<br>package. A miner should mine M1 wh=
ich is 5sat/vB instead of M2, M3, P1, P2, and<br>P3, which is only 4sat/vB.=
 The Package RBF rule cannot be loosened to only allow<br>the child to have=
 new unconfirmed inputs, either, because it can still cause us<br>to overes=
timate the package&#39;s ancestor score.<br><br>However, enforcing a rule a=
nalogous to BIP125#2 would not only make Package RBF<br>less useful, but wo=
uld also break Package RBF for packages with parents already<br>in the memp=
ool: if a package parent has already been submitted, it would look<br>like =
the child is spending a &quot;new&quot; unconfirmed input. In example K [18=
], we&#39;re<br>looking to replace M1 with the entire package including P1,=
 P2, and P3. We must<br>consider the case where one of the parents is alrea=
dy in the mempool (in this<br>case, P2), which means we must allow P3 to ha=
ve new unconfirmed inputs. However,<br>M2 lowers the ancestor score of P3 t=
o 4.3sat/vB, so we should not replace M1<br>with this package.<br><br>Thus,=
 the package RBF rule regarding new unconfirmed inputs is less strict than<=
br>BIP125#2. However, we still achieve the same goal of requiring the repla=
cement<br>transactions to have a ancestor score at least as high as the ori=
ginal ones. As<br>a result, the entire package is required to be a higher f=
eerate mining candidate<br>than each of the replaced transactions.<br><br>A=
nother note: the [comment][13] above the BIP125#2 code in the original RBF<=
br>implementation suggests that the rule was intended to be temporary.<br><=
br>##### Absolute Fee (Rule #3)<br><br>The package must increase the absolu=
te fee of the mempool, i.e. the total fees<br>of the package must be higher=
 than the absolute fees of the mempool transactions<br>it replaces. Combine=
d with the CPFP rule above, this differs from BIP125 Rule #3<br>- an indivi=
dual transaction in the package may have lower fees than the<br>=C2=A0 tran=
saction(s) it is replacing. In fact, it may have 0 fees, and the child<br>p=
ays for RBF.<br><br>##### Feerate (Rule #4)<br><br>The package must pay for=
 its own bandwidth; the package feerate must be higher<br>than the replaced=
 transactions by at least minimum relay feerate<br>(`incrementalRelayFee`).=
 Combined with the CPFP rule above, this differs from<br>BIP125 Rule #4 - a=
n individual transaction in the package can have a lower<br>feerate than th=
e transaction(s) it is replacing. In fact, it may have 0 fees,<br>and the c=
hild pays for RBF.<br><br>##### Total Number of Replaced Transactions (Rule=
 #5)<br><br>The package cannot replace more than 100 mempool transactions. =
This is identical<br>to BIP125 Rule #5.<br><br>### Expected FAQs<br><br>1. =
Is it possible for only some of the package to make it into the mempool?<br=
><br>=C2=A0 =C2=A0Yes, it is. However, since we evict transactions from the=
 mempool by<br>descendant score and the package child is supposed to be spo=
nsoring the fees of<br>its parents, the most common scenario would be all-o=
r-nothing. This is<br>incentive-compatible. In fact, to be conservative, pa=
ckage validation should<br>begin by trying to submit all of the transaction=
s individually, and only use the<br>package mempool acceptance logic if the=
 parents fail due to low feerate.<br><br>2. Should we allow packages to con=
tain already-confirmed transactions?<br><br>=C2=A0 =C2=A0 No, for practical=
 reasons. In mempool validation, we actually aren&#39;t able to<br>tell wit=
h 100% confidence if we are looking at a transaction that has already<br>co=
nfirmed, because we look up inputs using a UTXO set. If we have historical<=
br>block data, it&#39;s possible to look for it, but this is inefficient, n=
ot always<br>possible for pruning nodes, and unnecessary because we&#39;re =
not going to do<br>anything with the transaction anyway. As such, we alread=
y have the expectation<br>that transaction relay is somewhat &quot;stateful=
&quot; i.e. nobody should be relaying<br>transactions that have already bee=
n confirmed. Similarly, we shouldn&#39;t be<br>relaying packages that conta=
in already-confirmed transactions.<br><br>[1]: <a href=3D"https://github.co=
m/bitcoin/bitcoin/pull/22290" target=3D"_blank">https://github.com/bitcoin/=
bitcoin/pull/22290</a><br>[2]: <a href=3D"https://github.com/bitcoin/bips/b=
lob/1f0b563738199ca60d32b4ba779797fc97d040fe/bip-0141.mediawiki#transaction=
-size-calculations" target=3D"_blank">https://github.com/bitcoin/bips/blob/=
1f0b563738199ca60d32b4ba779797fc97d040fe/bip-0141.mediawiki#transaction-siz=
e-calculations</a><br>[3]: <a href=3D"https://github.com/bitcoin/bitcoin/bl=
ob/94f83534e4b771944af7d9ed0f40746f392eb75e/src/policy/policy.cpp#L282" tar=
get=3D"_blank">https://github.com/bitcoin/bitcoin/blob/94f83534e4b771944af7=
d9ed0f40746f392eb75e/src/policy/policy.cpp#L282</a><br>[4]: <a href=3D"http=
s://github.com/bitcoin/bitcoin/pull/16400" target=3D"_blank">https://github=
.com/bitcoin/bitcoin/pull/16400</a><br>[5]: <a href=3D"https://github.com/b=
itcoin/bitcoin/pull/21062" target=3D"_blank">https://github.com/bitcoin/bit=
coin/pull/21062</a><br>[6]: <a href=3D"https://github.com/bitcoin/bitcoin/p=
ull/22675" target=3D"_blank">https://github.com/bitcoin/bitcoin/pull/22675<=
/a><br>[7]: <a href=3D"https://github.com/bitcoin/bitcoin/pull/22796" targe=
t=3D"_blank">https://github.com/bitcoin/bitcoin/pull/22796</a><br>[8]: <a h=
ref=3D"https://github.com/bitcoin/bitcoin/pull/20833" target=3D"_blank">htt=
ps://github.com/bitcoin/bitcoin/pull/20833</a><br>[9]: <a href=3D"https://g=
ithub.com/bitcoin/bitcoin/pull/21800" target=3D"_blank">https://github.com/=
bitcoin/bitcoin/pull/21800</a><br>[10]: <a href=3D"https://github.com/bitco=
in/bitcoin/pull/16401" target=3D"_blank">https://github.com/bitcoin/bitcoin=
/pull/16401</a><br>[11]: <a href=3D"https://github.com/bitcoin/bitcoin/pull=
/19621" target=3D"_blank">https://github.com/bitcoin/bitcoin/pull/19621</a>=
<br>[12]: <a href=3D"https://github.com/bitcoin/bips/blob/master/bip-0125.m=
ediawiki" target=3D"_blank">https://github.com/bitcoin/bips/blob/master/bip=
-0125.mediawiki</a><br>[13]: <a href=3D"https://github.com/bitcoin/bitcoin/=
pull/6871/files#diff-34d21af3c614ea3cee120df276c9c4ae95053830d7f1d3deaf009a=
4625409ad2R1101-R1104" target=3D"_blank">https://github.com/bitcoin/bitcoin=
/pull/6871/files#diff-34d21af3c614ea3cee120df276c9c4ae95053830d7f1d3deaf009=
a4625409ad2R1101-R1104</a><br>[14]: <a href=3D"https://user-images.githubus=
ercontent.com/25183001/133567078-075a971c-0619-4339-9168-b41fd2b90c28.png" =
target=3D"_blank">https://user-images.githubusercontent.com/25183001/133567=
078-075a971c-0619-4339-9168-b41fd2b90c28.png</a><br>[15]: <a href=3D"https:=
//user-images.githubusercontent.com/25183001/132856734-fc17da75-f875-44bb-b=
954-cb7a1725cc0d.png" target=3D"_blank">https://user-images.githubuserconte=
nt.com/25183001/132856734-fc17da75-f875-44bb-b954-cb7a1725cc0d.png</a><br>[=
16]: <a href=3D"https://user-images.githubusercontent.com/25183001/13356734=
7-a3e2e4a8-ae9c-49f8-abb9-81e8e0aba224.png" target=3D"_blank">https://user-=
images.githubusercontent.com/25183001/133567347-a3e2e4a8-ae9c-49f8-abb9-81e=
8e0aba224.png</a><br>[17]: <a href=3D"https://user-images.githubusercontent=
.com/25183001/133567370-21566d0e-36c8-4831-b1a8-706634540af3.png" target=3D=
"_blank">https://user-images.githubusercontent.com/25183001/133567370-21566=
d0e-36c8-4831-b1a8-706634540af3.png</a><br>[18]: <a href=3D"https://user-im=
ages.githubusercontent.com/25183001/133567444-bfff1142-439f-4547-800a-2ba2b=
0242bcb.png" target=3D"_blank">https://user-images.githubusercontent.com/25=
183001/133567444-bfff1142-439f-4547-800a-2ba2b0242bcb.png</a><br>[19]: <a h=
ref=3D"https://user-images.githubusercontent.com/25183001/133456219-0bb447c=
b-dcb4-4a31-b9c1-7d86205b68bc.png" target=3D"_blank">https://user-images.gi=
thubusercontent.com/25183001/133456219-0bb447cb-dcb4-4a31-b9c1-7d86205b68bc=
.png</a><br>[20]: <a href=3D"https://user-images.githubusercontent.com/2518=
3001/132857787-7b7c6f56-af96-44c8-8d78-983719888c19.png" target=3D"_blank">=
https://user-images.githubusercontent.com/25183001/132857787-7b7c6f56-af96-=
44c8-8d78-983719888c19.png</a><br></div>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
</blockquote></div>

--00000000000069704d05cc615cdb--