Merge pull request #1364 from halseth/data-loss-protect

Data loss protection
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2018-07-31 20:53:42 -07:00
commit 1e39cfc65f
9 files changed
+1167 -193

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
// Skip adding any permanently irreconcilable channels to the
// htlcswitch.
if dbChan.ChanStatus != channeldb.Default {
if dbChan.ChanStatus() != channeldb.Default {
peerLog.Warnf("ChannelPoint(%v) has status %v, won't "+
"start.", chanPoint, dbChan.ChanStatus)
lnChan.Stop()