Parameterize ChannelManager::new with a block hash
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 3 Mar 2021 19:24:55 +0000 (11:24 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Mar 2021 23:44:54 +0000 (15:44 -0800)
When ChannelMonitors are persisted, they need to store the most recent
block hash seen. However, for newly created channels the default block
hash is used. If persisted before a block is connected, the funding
output may be missed when syncing after a restart. Instead, initialize
ChannelManager with a "birthday" hash so it can be used later when
creating channels.


No differences found