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

View File

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