mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-24 15:56:42 +00:00

* 1) Calculate pruning point incrementally 2) Add IsValidPruningPoint to pruning manager and consensus 3) Use reachability children for selected child iterator * Add request IBD root hash flow * Fix UpdatePruningPointByVirtual and IsValidPruningPoint * Regenerate messages.pb.go * Make the pruning point the earliest chain block with finality interval higher than the previous pruning point * Fix merge errors
23 lines
714 B
Go
23 lines
714 B
Go
package appmessage
|
|
|
|
// MsgRequestIBDRootHash implements the Message interface and represents a kaspa
|
|
// MsgRequestIBDRootHash message. It is used to request the IBD root hash
|
|
// from a peer during IBD.
|
|
//
|
|
// This message has no payload.
|
|
type MsgRequestIBDRootHash struct {
|
|
baseMessage
|
|
}
|
|
|
|
// Command returns the protocol command string for the message. This is part
|
|
// of the Message interface implementation.
|
|
func (msg *MsgRequestIBDRootHash) Command() MessageCommand {
|
|
return CmdRequestIBDRootHash
|
|
}
|
|
|
|
// NewMsgRequestIBDRootHash returns a new kaspa RequestIBDRootHash message that conforms to the
|
|
// Message interface.
|
|
func NewMsgRequestIBDRootHash() *MsgRequestIBDRootHash {
|
|
return &MsgRequestIBDRootHash{}
|
|
}
|