lightningnetwork / lightning-onion

Onion Routed Micropayments for the Lightning Network
MIT License
396 stars 125 forks source link

Invalid struct member & invalid type conversion #10

Closed Crypt-iQ closed 6 years ago

Crypt-iQ commented 6 years ago

This PR fixes two simple bugs, an invalid type conversion of uint32(val) when uint64(val) should have been used (otherwise HopData is 61 bytes long) and an old struct member being used: p.Packet.Encode(w) instead of p.NextPacket.Encode(w).