mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +00:00
54 lines
1.8 KiB
Go
54 lines
1.8 KiB
Go
package appmessage
|
|
|
|
// NotifyNewBlockTemplateRequestMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type NotifyNewBlockTemplateRequestMessage struct {
|
|
baseMessage
|
|
ID string
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *NotifyNewBlockTemplateRequestMessage) Command() MessageCommand {
|
|
return CmdNotifyNewBlockTemplateRequestMessage
|
|
}
|
|
|
|
// NewNotifyNewBlockTemplateRequestMessage returns an instance of the message
|
|
func NewNotifyNewBlockTemplateRequestMessage(id string) *NotifyNewBlockTemplateRequestMessage {
|
|
return &NotifyNewBlockTemplateRequestMessage{ID: id}
|
|
}
|
|
|
|
// NotifyNewBlockTemplateResponseMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type NotifyNewBlockTemplateResponseMessage struct {
|
|
baseMessage
|
|
ID string
|
|
Error *RPCError
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *NotifyNewBlockTemplateResponseMessage) Command() MessageCommand {
|
|
return CmdNotifyNewBlockTemplateResponseMessage
|
|
}
|
|
|
|
// NewNotifyNewBlockTemplateResponseMessage returns an instance of the message
|
|
func NewNotifyNewBlockTemplateResponseMessage(id string) *NotifyNewBlockTemplateResponseMessage {
|
|
return &NotifyNewBlockTemplateResponseMessage{ID: id}
|
|
}
|
|
|
|
// NewBlockTemplateNotificationMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type NewBlockTemplateNotificationMessage struct {
|
|
baseMessage
|
|
ID string
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *NewBlockTemplateNotificationMessage) Command() MessageCommand {
|
|
return CmdNewBlockTemplateNotificationMessage
|
|
}
|
|
|
|
// NewNewBlockTemplateNotificationMessage returns an instance of the message
|
|
func NewNewBlockTemplateNotificationMessage(id string) *NewBlockTemplateNotificationMessage {
|
|
return &NewBlockTemplateNotificationMessage{ID: id}
|
|
}
|