utxonursery: finish migrating to lnwire OutPoint serialization

This commit is contained in:
Philip Hayes authored and Olaoluwa Osuntokun committed 2017-08-25 17:56:50 -07:00
1 parent b19c483a04
commit 56793a1041
3 files changed
+19 -10

No files matched your search

+8 -1
View File
@@ -612,11 +612,18 @@ func (b *breachArbiter) exactRetribution(confChan *chainntnfs.ConfirmationEvent,
revokedFunds, totalFunds)
// With the channel closed, mark it in the database as such.
err := b.db.MarkChanFullyClosed(&breachInfo.chanPoint)
err := b.db.MarkChanFullyClosed(&ret.chanPoint)
if err != nil {
brarLog.Errorf("unable to mark chan as closed: %v", err)
}
// Justice has been carried out; we can safely delete the retribution
// info from the database.
err = b.retributionStore.Remove(&ret.chanPoint)
if err != nil {
brarLog.Errorf("unable to remove retribution from the db: %v", err)
}
// TODO(roasbeef): add peer to blacklist?
// TODO(roasbeef): close other active channels with offending peer