From 4609bd462f257590187bc386e0b1075b659dc5ca Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 4 May 2017 16:10:46 -0700 Subject: [PATCH] breacharbiter: mark channel as fully closed after retribution enacted --- breacharbiter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/breacharbiter.go b/breacharbiter.go index 6f3c8777..1f142283 100644 --- a/breacharbiter.go +++ b/breacharbiter.go @@ -326,6 +326,12 @@ func (b *breachArbiter) exactRetribution(confChan *chainntnfs.ConfirmationEvent, "have been claimed", breachInfo.chanPoint, revokedFunds, totalFunds) + // With the channel closed, mark it in the database as such. + err := b.db.MarkChanFullyClosed(&breachInfo.chanPoint) + if err != nil { + brarLog.Errorf("unable to mark chan as closed: %v", err) + } + // TODO(roasbeef): add peer to blacklist? // TODO(roasbeef): close other active channels with offending peer