brontide: set the prologue value as specified within BOLT0008

This commit is contained in:
Olaoluwa Osuntokun 2016-12-12 15:24:46 -08:00
parent b1d28426d5
commit 61ddd48255
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -338,7 +338,7 @@ type BrontideMachine struct {
func NewBrontideMachine(initiator bool, localPub *btcec.PrivateKey, func NewBrontideMachine(initiator bool, localPub *btcec.PrivateKey,
remotePub *btcec.PublicKey) *BrontideMachine { remotePub *btcec.PublicKey) *BrontideMachine {
handshake := newHandshakeState(initiator, []byte("bitcoin"), localPub, handshake := newHandshakeState(initiator, []byte("lightning"), localPub,
remotePub) remotePub)
return &BrontideMachine{handshakeState: handshake} return &BrontideMachine{handshakeState: handshake}