Pass along ChannelManager's last_block_hash
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Mar 2021 02:22:37 +0000 (18:22 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Mar 2021 23:45:12 +0000 (15:45 -0800)
ChannelMonitor keeps track of the last block connected. However, it is
initialized with the default block hash, which is a problem if the
ChannelMonitor is serialized before a block is connected. Instead, pass
ChannelManager's last_block_hash, which is initialized with a "birthday"
hash, when creating a new ChannelMonitor.


No differences found