@@ -911,23 +911,38 @@ mod tests {
911
911
ext_from_hex ( "0022 ff4f00f805273c1b203bb5ebf8436bfde57b3be8c2f5e95d9491dbb181909679 3d00000000000000000000000000000000000000000000000000000000000000 0000 00000000000000000000000000000000000000000000000000000000000000210100000000000000000000000000000000000000000000000000000000000000 03000000000000000000000000000000" , & mut test) ;
912
912
// client should now respond with funding_signed (CHECK 2: type 35 to peer 03000000)
913
913
914
+
915
+
914
916
// connect a block with one transaction of len 94
915
917
ext_from_hex ( "0c005e" , & mut test) ;
916
918
// the funding transaction
917
919
ext_from_hex ( "020000000100000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0150c3000000000000220020ae0000000000000000000000000000000000000000000000000000000000000000000000" , & mut test) ;
920
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
918
921
// connect a block with no transactions, one per line
919
922
ext_from_hex ( "0c0000" , & mut test) ;
923
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
920
924
ext_from_hex ( "0c0000" , & mut test) ;
925
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
921
926
ext_from_hex ( "0c0000" , & mut test) ;
927
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
922
928
ext_from_hex ( "0c0000" , & mut test) ;
929
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
923
930
ext_from_hex ( "0c0000" , & mut test) ;
931
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
924
932
ext_from_hex ( "0c0000" , & mut test) ;
933
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
925
934
ext_from_hex ( "0c0000" , & mut test) ;
935
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
926
936
ext_from_hex ( "0c0000" , & mut test) ;
937
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
927
938
ext_from_hex ( "0c0000" , & mut test) ;
939
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
928
940
ext_from_hex ( "0c0000" , & mut test) ;
941
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
929
942
ext_from_hex ( "0c0000" , & mut test) ;
943
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
930
944
ext_from_hex ( "0c0000" , & mut test) ;
945
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
931
946
// by now client should have sent a channel_ready (CHECK 3: SendChannelReady to 03000000 for chan 3d000000)
932
947
933
948
// inbound read from peer id 0 of len 18
@@ -1297,21 +1312,28 @@ mod tests {
1297
1312
ext_from_hex ( "0c007d" , & mut test) ;
1298
1313
// the commitment transaction for channel 3f00000000000000000000000000000000000000000000000000000000000000
1299
1314
ext_from_hex ( "02000000013a000000000000000000000000000000000000000000000000000000000000000000000000000000800258020000000000002200204b0000000000000000000000000000000000000000000000000000000000000014c0000000000000160014280000000000000000000000000000000000000005000020" , & mut test) ;
1315
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1300
1316
//
1301
1317
// connect a block with one transaction of len 94
1302
1318
ext_from_hex ( "0c005e" , & mut test) ;
1303
1319
// the HTLC timeout transaction
1304
1320
ext_from_hex ( "0200000001730000000000000000000000000000000000000000000000000000000000000000000000000000000001a701000000000000220020b20000000000000000000000000000000000000000000000000000000000000000000000" , & mut test) ;
1321
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1305
1322
// connect a block with no transactions
1306
1323
ext_from_hex ( "0c0000" , & mut test) ;
1324
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1307
1325
// connect a block with no transactions
1308
1326
ext_from_hex ( "0c0000" , & mut test) ;
1327
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1309
1328
// connect a block with no transactions
1310
1329
ext_from_hex ( "0c0000" , & mut test) ;
1330
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1311
1331
// connect a block with no transactions
1312
1332
ext_from_hex ( "0c0000" , & mut test) ;
1333
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1313
1334
// connect a block with no transactions
1314
1335
ext_from_hex ( "0c0000" , & mut test) ;
1336
+ ext_from_hex ( "00fd00fd" , & mut test) ; // Two feerate requests during block connection
1315
1337
1316
1338
// process the now-pending HTLC forward
1317
1339
ext_from_hex ( "07" , & mut test) ;
0 commit comments