htlcswitch/interfaces: have HandleSwitchPacket return an error
This commit is contained in:
parent
403028da78
commit
2c3d35bb40
@ -47,7 +47,7 @@ type ChannelLink interface {
|
|||||||
//
|
//
|
||||||
// NOTE: This function MUST be non-blocking (or block as little as
|
// NOTE: This function MUST be non-blocking (or block as little as
|
||||||
// possible).
|
// possible).
|
||||||
HandleSwitchPacket(*htlcPacket)
|
HandleSwitchPacket(*htlcPacket) error
|
||||||
|
|
||||||
// HandleChannelUpdate handles the htlc requests as settle/add/fail
|
// HandleChannelUpdate handles the htlc requests as settle/add/fail
|
||||||
// which sent to us from remote peer we have a channel with.
|
// 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.
|
// will use this function in forwarding decisions accordingly.
|
||||||
EligibleToForward() bool
|
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
|
// Start/Stop are used to initiate the start/stop of the channel link
|
||||||
// functioning.
|
// functioning.
|
||||||
Start() error
|
Start() error
|
||||||
|
Loading…
Reference in New Issue
Block a user