Fix persistence-required futures always completing instantly 2022-11-future-wake-fix
authorMatt Corallo <git@bluematt.me>
Thu, 10 Nov 2022 00:37:01 +0000 (00:37 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 11 Nov 2022 02:03:52 +0000 (02:03 +0000)
commitf382f56cbba94480e4839b62c80bb349b0c067f1
tree169fc999e98d0321f2716a86e1506de784b31922
parent3b2f694c290389bcc8cbe81a4cadbddd6175c0a5
Fix persistence-required futures always completing instantly

After the first persistence-required `Future` wakeup, we'll always
complete additional futures instantly as we don't clear the
"need wake" bit. Instead, we need to just assume that if a future
was generated (and not immediately drop'd) that its sufficient to
notify the user.
lightning/src/ln/channelmanager.rs
lightning/src/util/wakers.rs