htlcswitch/interfaces: have HandleSwitchPacket return an error

This commit is contained in:
Conner Fromknecht 2018-01-16 12:55:41 -08:00
parent 403028da78
commit 2c3d35bb40
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF
1 changed files with 5 additions and 1 deletions

View File

@ -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