don't need the final identifier to create forwarding message

* Final ID is implicitly the last node in the path
This commit is contained in:
Olaoluwa Osuntokun 2015-10-22 13:21:14 -07:00
parent 4b304adf2a
commit 2e89e5a4be

@ -238,7 +238,7 @@ type ForwardingMessage struct {
// onion encrypted message payload is then to be delivered to the specified 'dest'
// address.
func NewForwardingMessage(route []*btcec.PublicKey, dest LightningAddress,
identifier [securityParameter]byte, message []byte) (*ForwardingMessage, error) {
message []byte) (*ForwardingMessage, error) {
routeLength := len(route)
// Compute the mix header, and shared secerts for each hop. We pass in