mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-28 00:03:39 +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.
24 lines
719 B
Go
24 lines
719 B
Go
package appmessage
|
|
|
|
import (
|
|
"github.com/zoomy-network/zoomyd/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// MsgIBDBlockLocatorHighestHash represents a kaspa BlockLocatorHighestHash message
|
|
type MsgIBDBlockLocatorHighestHash struct {
|
|
baseMessage
|
|
HighestHash *externalapi.DomainHash
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *MsgIBDBlockLocatorHighestHash) Command() MessageCommand {
|
|
return CmdIBDBlockLocatorHighestHash
|
|
}
|
|
|
|
// NewMsgIBDBlockLocatorHighestHash returns a new BlockLocatorHighestHash message
|
|
func NewMsgIBDBlockLocatorHighestHash(highestHash *externalapi.DomainHash) *MsgIBDBlockLocatorHighestHash {
|
|
return &MsgIBDBlockLocatorHighestHash{
|
|
HighestHash: highestHash,
|
|
}
|
|
}
|