Implement chain::Listen without using RefCell
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 1 Mar 2021 06:39:01 +0000 (22:39 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 2 Mar 2021 06:12:26 +0000 (22:12 -0800)
commite8ea0d9f041651f6cfc45e54c02e8c132c0fdeaf
tree988d0734b05059fd9a87c3dd578d268a6b033a0a
parent389c4ad6fa21caf62c6616f879536c7b693a9d1f
Implement chain::Listen without using RefCell

The implementation of chain::Listen for ChannelMonitor required using a
RefCell since its block_connected method required a mutable borrow. This
is no longer the case since ChannelMonitor now uses interior mutability
via a Mutex. So the RefCell is no longer needed.
lightning-block-sync/src/init.rs
lightning/src/chain/channelmonitor.rs