Commit 0785f6a
fix(cbf): advance sync timestamps and handle unknown block on resume
Fixes a hang in start/stop/reinit after a checkpoint-based resume where
`wait_for_cbf_sync` timed out because neither sync timestamp advanced.
- `sync_lightning_wallet`: when no scripts are registered, still call
`update_node_metrics_timestamp` so callers waiting on a strict advance
of `latest_lightning_wallet_sync_timestamp` make progress. The
empty-scripts and normal paths now share a single timestamp-update
site at the end of the closure.
- `fee_rate_cache_from_cbf`: treat `FetchBlockError::UnknownHash` as a
skip-this-cycle condition instead of an error. After a checkpoint
resume, `requester.chain_tip()` can return the checkpoint hash which
has no `BlockNode` in kyoto's tree yet, previously surfacing as
`FeerateEstimationUpdateFailed` from `node.start()`.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a70d6ec commit 0785f6a
1 file changed
Lines changed: 39 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
747 | 746 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
755 | 754 | | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
918 | 930 | | |
919 | 931 | | |
920 | 932 | | |
| |||
0 commit comments