htlcswitch/iterator: remove unused ExtraOnionBlob method
This commit is contained in:
parent
9e9b912d3a
commit
014ea0abd0
@ -24,9 +24,6 @@ type Iterator interface {
|
|||||||
// by the sender.
|
// by the sender.
|
||||||
HopPayload() (*Payload, error)
|
HopPayload() (*Payload, error)
|
||||||
|
|
||||||
// ExtraOnionBlob returns the additional EOB data (if available).
|
|
||||||
ExtraOnionBlob() []byte
|
|
||||||
|
|
||||||
// EncodeNextHop encodes the onion packet destined for the next hop
|
// EncodeNextHop encodes the onion packet destined for the next hop
|
||||||
// into the passed io.Writer.
|
// into the passed io.Writer.
|
||||||
EncodeNextHop(w io.Writer) error
|
EncodeNextHop(w io.Writer) error
|
||||||
@ -102,15 +99,6 @@ func (r *sphinxHopIterator) HopPayload() (*Payload, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtraOnionBlob returns the additional EOB data (if available).
|
|
||||||
func (r *sphinxHopIterator) ExtraOnionBlob() []byte {
|
|
||||||
if r.processedPacket.Payload.Type == sphinx.PayloadLegacy {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return r.processedPacket.Payload.Payload
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExtractErrorEncrypter decodes and returns the ErrorEncrypter for this hop,
|
// ExtractErrorEncrypter decodes and returns the ErrorEncrypter for this hop,
|
||||||
// along with a failure code to signal if the decoding was successful. The
|
// along with a failure code to signal if the decoding was successful. The
|
||||||
// ErrorEncrypter is used to encrypt errors back to the sender in the event that
|
// ErrorEncrypter is used to encrypt errors back to the sender in the event that
|
||||||
|
Loading…
Reference in New Issue
Block a user