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 RoutingTableRequestMessage struct {
|
|
|
|
RoutingMessageBase
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *RoutingTableRequestMessage) String() string {
|
|
|
|
return fmt.Sprintf("RoutingTableRequestMessage{%v %v}", msg.SenderID, msg.ReceiverID)
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *RoutingTableRequestMessage) Command() uint32 {
|
2016-07-15 14:02:59 +03:00
|
|
|
return CmdRoutingTableRequestMessage
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *RoutingTableRequestMessage) 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 *RoutingTableRequestMessage) 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 *RoutingTableRequestMessage) MaxPayloadLength(uint32) uint32 {
|
2016-07-15 14:02:59 +03:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
func (msg *RoutingTableRequestMessage) Validate() error {
|
2016-07-15 14:02:59 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-08-11 21:54:44 +03:00
|
|
|
var _ Message = (*RoutingTableRequestMessage)(nil)
|