@@ -971,6 +971,8 @@ mod tests {
971
971
972
972
// create the funding transaction (client should send funding_created now)
973
973
ext_from_hex ( "0a" , & mut test) ;
974
+ // Two feerate requests to check the dust exposure on the initial commitment tx
975
+ ext_from_hex ( "00fd00fd" , & mut test) ;
974
976
975
977
// inbound read from peer id 1 of len 18
976
978
ext_from_hex ( "030112" , & mut test) ;
@@ -1019,6 +1021,9 @@ mod tests {
1019
1021
// end of update_add_htlc from 0 to 1 via client and mac
1020
1022
ext_from_hex ( "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ab00000000000000000000000000000000000000000000000000000000000000 03000000000000000000000000000000" , & mut test) ;
1021
1023
1024
+ // Two feerate requests to check dust exposure
1025
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1026
+
1022
1027
// inbound read from peer id 0 of len 18
1023
1028
ext_from_hex ( "030012" , & mut test) ;
1024
1029
// message header indicating message length 100
@@ -1040,6 +1045,8 @@ mod tests {
1040
1045
1041
1046
// process the now-pending HTLC forward
1042
1047
ext_from_hex ( "07" , & mut test) ;
1048
+ // Two feerate requests to check dust exposure
1049
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1043
1050
// client now sends id 1 update_add_htlc and commitment_signed (CHECK 7: UpdateHTLCs event for node 03020000 with 1 HTLCs for channel 3f000000)
1044
1051
1045
1052
// we respond with commitment_signed then revoke_and_ack (a weird, but valid, order)
@@ -1115,6 +1122,9 @@ mod tests {
1115
1122
// end of update_add_htlc from 0 to 1 via client and mac
1116
1123
ext_from_hex ( "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ab00000000000000000000000000000000000000000000000000000000000000 03000000000000000000000000000000" , & mut test) ;
1117
1124
1125
+ // Two feerate requests to check dust exposure
1126
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1127
+
1118
1128
// now respond to the update_fulfill_htlc+commitment_signed messages the client sent to peer 0
1119
1129
// inbound read from peer id 0 of len 18
1120
1130
ext_from_hex ( "030012" , & mut test) ;
@@ -1146,6 +1156,10 @@ mod tests {
1146
1156
1147
1157
// process the now-pending HTLC forward
1148
1158
ext_from_hex ( "07" , & mut test) ;
1159
+
1160
+ // Two feerate requests to check dust exposure
1161
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1162
+
1149
1163
// client now sends id 1 update_add_htlc and commitment_signed (CHECK 7 duplicate)
1150
1164
// we respond with revoke_and_ack, then commitment_signed, then update_fail_htlc
1151
1165
@@ -1243,6 +1257,9 @@ mod tests {
1243
1257
// end of update_add_htlc from 0 to 1 via client and mac
1244
1258
ext_from_hex ( "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 5300000000000000000000000000000000000000000000000000000000000000 03000000000000000000000000000000" , & mut test) ;
1245
1259
1260
+ // Two feerate requests to check dust exposure
1261
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1262
+
1246
1263
// inbound read from peer id 0 of len 18
1247
1264
ext_from_hex ( "030012" , & mut test) ;
1248
1265
// message header indicating message length 164
@@ -1264,6 +1281,8 @@ mod tests {
1264
1281
1265
1282
// process the now-pending HTLC forward
1266
1283
ext_from_hex ( "07" , & mut test) ;
1284
+ // Two feerate requests to check dust exposure
1285
+ ext_from_hex ( "00fd00fd" , & mut test) ;
1267
1286
// client now sends id 1 update_add_htlc and commitment_signed (CHECK 7 duplicate)
1268
1287
1269
1288
// connect a block with one transaction of len 125
0 commit comments