mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 07:48:44 +00:00
Just some name changes, put in a stand in emission amount, and started copying the algo from Karlsen. Not release worthy yet. Therefore Dev branch exists now. Also, for now this is for research purposes only. I got no clue what to build on top of Kaspa yet. Help would be appreciated for ideas and implementations.
27 lines
765 B
Go
27 lines
765 B
Go
package appmessage
|
|
|
|
import (
|
|
"github.com/zoomy-network/zoomyd/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// MsgRequestIBDBlocks implements the Message interface and represents a kaspa
|
|
// RequestIBDBlocks message. It is used to request blocks as part of the IBD
|
|
// protocol.
|
|
type MsgRequestIBDBlocks struct {
|
|
baseMessage
|
|
Hashes []*externalapi.DomainHash
|
|
}
|
|
|
|
// Command returns the protocol command string for the message. This is part
|
|
// of the Message interface implementation.
|
|
func (msg *MsgRequestIBDBlocks) Command() MessageCommand {
|
|
return CmdRequestIBDBlocks
|
|
}
|
|
|
|
// NewMsgRequestIBDBlocks returns a new MsgRequestIBDBlocks.
|
|
func NewMsgRequestIBDBlocks(hashes []*externalapi.DomainHash) *MsgRequestIBDBlocks {
|
|
return &MsgRequestIBDBlocks{
|
|
Hashes: hashes,
|
|
}
|
|
}
|