]> git.bitcoin.ninja Git - rust-lightning/commit
Move channel monitor updates inside the channel_state lock
authorMatt Corallo <git@bluematt.me>
Wed, 17 Oct 2018 12:47:33 +0000 (08:47 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Oct 2018 20:03:30 +0000 (16:03 -0400)
commitbd2c839a73817b1464f3e9192a944ad646617123
treeacbb770c60d543ba52d3dcab81f2d23430075194
parent65b23d8d8a936ad5047eb1ec0115a9679ae5eca1
Move channel monitor updates inside the channel_state lock

This really, really sucks as it defeats almost all of the
cross-channel parallelism we'd intended to have - waiting on a
client to update a watchtower for an unrelated channel to process
any messages is really shitty. We should revisit this with
per-channel locks as a compile-time option post-0.1.
src/ln/channelmanager.rs