From f7e59510c37780b574f4c19bae82079d4700b7ba Mon Sep 17 00:00:00 2001 From: ffranr Date: Fri, 5 Jan 2024 14:55:46 +0000 Subject: [PATCH] tapgarden: handle proof received from courier using subscription channel This commit ensures that a proof received within a proof courier goroutine is fed into the proof subscription channel and will be picked up by the `handleNewProof` function. This ensures that any event associated with the new proof will be cleaned up. --- tapgarden/custodian.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tapgarden/custodian.go b/tapgarden/custodian.go index 0fd3ccde9..65eb69a78 100644 --- a/tapgarden/custodian.go +++ b/tapgarden/custodian.go @@ -534,6 +534,11 @@ func (c *Custodian) receiveProof(addr *address.Tap, op wire.OutPoint) error { return fmt.Errorf("unable to import proofs: %w", err) } + // The proof is now verified and in our local archive. We will now + // finalize handling the proof like we would with any other newly + // received proof. + c.proofSubscription.NewItemCreated.ChanIn() <- addrProof.Blob + return nil }