]> git.bitcoin.ninja Git - rust-lightning/commit
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 01:39:21 +0000 (17:39 -0800)
commitd788e36b514fecea47fa27c029ef86146692729f
treebefe70e60d609183ac845d899a5e3528c6a433fb
parent1316265a93939a232734719e383bfb659fe15780
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