2016-07-15 14:02:59 +03:00
|
|
|
// Copyright (c) 2016 Bitfury Group Limited
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file LICENSE or http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
|
|
|
package lnwire
|
2016-08-11 21:54:44 +03:00
|
|
|
|
2016-07-15 14:02:59 +03:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
type NeighborRstMessage struct {
|
|
|
|
RoutingMessageBase
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *NeighborRstMessage) String() string {
|
|
|
|
return fmt.Sprintf("NeighborRstMessage{%v %v}", msg.SenderID, msg.ReceiverID)
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *NeighborRstMessage) Command() uint32 {
|
2016-07-15 14:02:59 +03:00
|
|
|
return CmdNeighborRstMessage
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *NeighborRstMessage) Encode(w io.Writer, pver uint32) error {
|
2016-07-15 14:02:59 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *NeighborRstMessage) Decode(r io.Reader, pver uint32) error {
|
2016-07-15 14:02:59 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *NeighborRstMessage) MaxPayloadLength(uint32) uint32 {
|
2016-07-15 14:02:59 +03:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *NeighborRstMessage) Validate() error {
|
2016-07-15 14:02:59 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
var _ Message = (*NeighborRstMessage)(nil)
|