Commit f3ce579
committed
Deterministic reconstruct_manager option in tests
We recently merged (test-only, for now) support for the ChannelManager
reconstructing its set of pending HTLCs from Channel{Monitor} data, rather than
using its own persisted maps. But because we want test coverage of both the new
reconstruction codepaths as well as the old persisted map codepaths,
in tests we would decide between those two sets of codepaths randomly.
We now want to add some tests that require using the new codepaths, so here we
add an option to explicitly set whether to reconstruct or not rather than
choosing randomly.1 parent bd312b8 commit f3ce579
3 files changed
Lines changed: 43 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17683 | 17683 | | |
17684 | 17684 | | |
17685 | 17685 | | |
| 17686 | + | |
| 17687 | + | |
| 17688 | + | |
| 17689 | + | |
| 17690 | + | |
| 17691 | + | |
| 17692 | + | |
| 17693 | + | |
| 17694 | + | |
17686 | 17695 | | |
17687 | 17696 | | |
17688 | 17697 | | |
| |||
17720 | 17729 | | |
17721 | 17730 | | |
17722 | 17731 | | |
| 17732 | + | |
| 17733 | + | |
17723 | 17734 | | |
17724 | 17735 | | |
17725 | 17736 | | |
| |||
18409 | 18420 | | |
18410 | 18421 | | |
18411 | 18422 | | |
18412 | | - | |
18413 | | - | |
18414 | | - | |
18415 | | - | |
18416 | | - | |
18417 | | - | |
18418 | | - | |
18419 | | - | |
18420 | | - | |
18421 | | - | |
18422 | | - | |
18423 | | - | |
18424 | | - | |
18425 | | - | |
18426 | | - | |
18427 | | - | |
18428 | | - | |
18429 | | - | |
18430 | | - | |
18431 | | - | |
| 18423 | + | |
| 18424 | + | |
| 18425 | + | |
| 18426 | + | |
| 18427 | + | |
| 18428 | + | |
| 18429 | + | |
| 18430 | + | |
| 18431 | + | |
| 18432 | + | |
| 18433 | + | |
| 18434 | + | |
| 18435 | + | |
| 18436 | + | |
| 18437 | + | |
| 18438 | + | |
| 18439 | + | |
| 18440 | + | |
| 18441 | + | |
| 18442 | + | |
| 18443 | + | |
| 18444 | + | |
| 18445 | + | |
| 18446 | + | |
18432 | 18447 | | |
18433 | 18448 | | |
18434 | 18449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
| |||
1307 | 1309 | | |
1308 | 1310 | | |
1309 | 1311 | | |
1310 | | - | |
| 1312 | + | |
1311 | 1313 | | |
1312 | 1314 | | |
1313 | 1315 | | |
| |||
1341 | 1343 | | |
1342 | 1344 | | |
1343 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
1344 | 1348 | | |
1345 | 1349 | | |
1346 | 1350 | | |
| |||
1376 | 1380 | | |
1377 | 1381 | | |
1378 | 1382 | | |
1379 | | - | |
| 1383 | + | |
1380 | 1384 | | |
1381 | 1385 | | |
1382 | 1386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| 459 | + | |
458 | 460 | | |
459 | 461 | | |
460 | 462 | | |
| |||
0 commit comments