channeldb: also restore channel capacity in RestoreChannelShells

This commit is contained in:
Olaoluwa Osuntokun 2019-03-10 16:15:07 -07:00
parent 7cbf0326c7
commit 13e7244d14
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -930,6 +930,7 @@ func (d *DB) RestoreChannelShells(channelShells ...*ChannelShell) error {
ChannelID: channel.ShortChannelID.ToUint64(), ChannelID: channel.ShortChannelID.ToUint64(),
ChainHash: channel.ChainHash, ChainHash: channel.ChainHash,
ChannelPoint: channel.FundingOutpoint, ChannelPoint: channel.FundingOutpoint,
Capacity: channel.Capacity,
} }
nodes := tx.Bucket(nodeBucket) nodes := tx.Bucket(nodeBucket)