Skip to content

Wake background-processor on async monitor update completion #2052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TheBlueMatt opened this issue Feb 25, 2023 · 2 comments · Fixed by #2090
Closed

Wake background-processor on async monitor update completion #2052

TheBlueMatt opened this issue Feb 25, 2023 · 2 comments · Fixed by #2090
Assignees
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

Probably need some kinda future like we have for ChannelManager persistence. We should also improve the logging in monitor persistence.

@TheBlueMatt TheBlueMatt added this to the 0.0.115 milestone Feb 25, 2023
@TheBlueMatt TheBlueMatt self-assigned this Feb 25, 2023
@TheBlueMatt
Copy link
Collaborator Author

Note to self, starting point branch with logging: 2023-02-better-chain-monitor-logging

@MaxFangX
Copy link
Contributor

It would be great if this new future is broad enough that the 100ms sleeper future in the LDK background processor could be removed (or at least default to a much higher value, like once a minute). Even though we don't use LDK's background processor directly, it would be a strong signal to us that LDK has confidence in its provided mechanisms for waking the background processor when needed, and would thus give us the confidence to remove our process events timer downstream.

TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 9, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 14, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 14, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 15, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 15, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 17, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 17, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 20, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 21, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 22, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wakt it using the new multi-`Future`-await `Waier`, or the
existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 25, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 25, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 25, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 28, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 28, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 28, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 29, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 30, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 31, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 31, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Mar 31, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this issue Apr 3, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
jbesraa pushed a commit to jbesraa/rust-lightning that referenced this issue Apr 8, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
optout21 pushed a commit to optout21/rust-lightning that referenced this issue Jul 24, 2023
If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes lightningdevkit#2052.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants