Remove last_block_connected from Channel
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Mar 2021 01:39:21 +0000 (17:39 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Mar 2021 23:45:12 +0000 (15:45 -0800)
commitcaabc4ef39233a78a9b88787719c653f76c31d1d
tree6b343e7fd92b818ae864ed5358788a0f85684547
parentff4b4c4d36e2403fe1682a352f54db4ab57f3987
Remove last_block_connected from Channel

Tracking the last block was only used to de-duplicate block_connected
calls, but this is no longer required as of the previous commit.
Further, the ChannelManager can pass the latest block hash when needing
to create a ChannelMonitor rather than have each Channel maintain an
up-to-date copy. This is implemented in the next commit.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs