From 2c3d35bb401b3b3825654fea0b3ee0669520f6a1 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 16 Jan 2018 12:55:41 -0800 Subject: [PATCH] htlcswitch/interfaces: have HandleSwitchPacket return an error --- htlcswitch/interfaces.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htlcswitch/interfaces.go b/htlcswitch/interfaces.go index 0d7ca2b4..51a5146e 100644 --- a/htlcswitch/interfaces.go +++ b/htlcswitch/interfaces.go @@ -47,7 +47,7 @@ type ChannelLink interface { // // NOTE: This function MUST be non-blocking (or block as little as // possible). - HandleSwitchPacket(*htlcPacket) + HandleSwitchPacket(*htlcPacket) error // HandleChannelUpdate handles the htlc requests as settle/add/fail // which sent to us from remote peer we have a channel with. @@ -98,6 +98,10 @@ type ChannelLink interface { // will use this function in forwarding decisions accordingly. EligibleToForward() bool + // AttachMailBox delivers an active MailBox to the link. The MailBox may + // have buffered messages. + AttachMailBox(MailBox) + // Start/Stop are used to initiate the start/stop of the channel link // functioning. Start() error