Skip to content

Commit

Permalink
channeldb: also restore channel capacity in RestoreChannelShells
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Mar 29, 2019
1 parent 7cbf032 commit 13e7244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions channeldb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13e7244

Please sign in to comment.