mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-27 10:11:57 +01:00
hop.Payload and route.Hop are analogs, with onion payloads encoded from route.Hops and decoded to hop.Payloads. For checking equality of encoding/decoding, we implement a helper function to convert hop.Payloads into route.Hops.