Remove a race-y debug assertion in new channel update handling 2023-04-fix-panicy-debug-assert
authorMatt Corallo <git@bluematt.me>
Sun, 9 Apr 2023 01:43:39 +0000 (01:43 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 9 Apr 2023 01:43:39 +0000 (01:43 +0000)
commit29f80269b5c66ffce8afd98a7b3e1205e4b7855d
tree7b76d153799ca49a9b21b852f835f3703c97debb
parent186cd047f8ff8ee51695dad92df7f1375a1251cd
Remove a race-y debug assertion in new channel update handling

In 6090d9e6a862a2010eb80be56b7449947bc08374 we swapped out old
debug assertions that checked that a lock was `try_lock`able to
test that certain locks weren't held when we needed to be able to
take them in some near branch. However, another slipped in after in
the `ChannelMonitorUpdate` handling rework, which is replaced with
the new debug assertions here.
lightning/src/ln/channelmanager.rs