chanrestore: use channel state open channel

Build restored channel shells with chanstate.OpenChannel instead of the
channeldb alias.

The restored shell is channel state data, so this keeps the constructor
aligned with the package that now owns the type.
This commit is contained in:
ziggie 2026-05-15 21:09:46 -03:00
parent 4a34503ca5
commit 05bea1dd69
No known key found for this signature in database
GPG key ID: 1AFF9C4DCED6D666

View file

@ -187,7 +187,7 @@ func (c *chanDBRestorer) openChannelShell(backup chanbackup.Single) (
chanShell := channeldb.ChannelShell{
NodeAddrs: backup.Addresses,
Chan: &channeldb.OpenChannel{
Chan: &chanstate.OpenChannel{
ChanType: chanType,
ChainHash: backup.ChainHash,
IsInitiator: backup.IsInitiator,