Skip to content

Commit

Permalink
Process background events when taking the total_consistency_lock
Browse files Browse the repository at this point in the history
When we generated a `ChannelMonitorUpdate` during `ChannelManager`
deserialization, we must ensure that it gets processed before any
other `ChannelMonitorUpdate`s. The obvious hook for this is when
taking the `total_consistency_lock`, which makes it unlikely we'll
regress by forgetting this.

Here we add that call in the `PersistenceNotifierGuard`, with a
test-only atomic bool to test that this criteria is met.
  • Loading branch information
TheBlueMatt committed May 30, 2023
1 parent acbe41a commit e5070c4
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 75 deletions.
Loading

0 comments on commit e5070c4

Please sign in to comment.