mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Implement upgrade mechanism for p2p * Remove dependencies from flowcontext to v3 * Add p2p v4 * Add Ready flow * Remove copy paste code of v3 * Register SendAddresses flow at the top level * Add option to set protocol version from CLI and add TestAddressExchangeV3V4 * Send ready message on minimal net adapter * Rename defaultMaxProtocolVersion->maxAcceptableProtocolVersion
23 lines
582 B
Go
23 lines
582 B
Go
package appmessage
|
|
|
|
// MsgReady implements the Message interface and represents a kaspa
|
|
// Ready message. It is used to notify that the peer is ready to receive
|
|
// messages.
|
|
//
|
|
// This message has no payload.
|
|
type MsgReady struct {
|
|
baseMessage
|
|
}
|
|
|
|
// Command returns the protocol command string for the message. This is part
|
|
// of the Message interface implementation.
|
|
func (msg *MsgReady) Command() MessageCommand {
|
|
return CmdReady
|
|
}
|
|
|
|
// NewMsgReady returns a new kaspa Ready message that conforms to the
|
|
// Message interface.
|
|
func NewMsgReady() *MsgReady {
|
|
return &MsgReady{}
|
|
}
|