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