1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

BOLT04: Correct the sphinx packet version in the implementation

This commit is contained in:
Christian Decker 2017-09-05 16:37:29 -07:00
parent 024f695bd1
commit 0310e40eda

View File

@ -290,7 +290,7 @@ func NewOnionPacket(paymentPath []*btcec.PublicKey, sessionKey *btcec.PrivateKey
}
packet := &OnionPacket{
Version: 0x01,
Version: 0x00,
EphemeralKey: hopEphemeralPubKeys[0],
RoutingInfo: mixHeader,
HeaderMAC: nextHmac,