Clarify and consolidate event handling requirements 2022-08-event-docs
authorMatt Corallo <git@bluematt.me>
Tue, 6 Sep 2022 20:56:24 +0000 (20:56 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Sep 2022 20:56:24 +0000 (20:56 +0000)
commitce7e7d302a74b43858a078d8ac519bbb0df8f7ef
tree6fc34397d7ea1c587abe1864012c9941630ff982
parent8c6cb9953a3b00ce3da25fbdfd8ada0ec48fc63f
Clarify and consolidate event handling requirements

We've seen a bit of user confusion about the requirements for event
handling, largely because the idempotency and consistency
requirements weren't super clearly phrased. While we're at it, we
also consolidate some documentation out of the event handling
function onto the trait itself.

Fixes #1675.
lightning/src/ln/channelmanager.rs
lightning/src/util/events.rs