mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-31 11:16:42 +00:00

* Replace header finality point with pruning point * Fix TestTransactionAcceptance * Fix pruning candidate * Store all past pruning points * Pass pruning points on IBD * Add blue score to block header * Simplify ArePruningPointsInValidChain * Fix static check errors * Fix genesis * Renames and text fixing * Use ExpectedHeaderPruningPoint in block builder * Fix TestCheckPruningPointViolation
21 lines
482 B
Go
21 lines
482 B
Go
package appmessage
|
|
|
|
// MsgPruningPoints represents a kaspa PruningPoints message
|
|
type MsgPruningPoints struct {
|
|
baseMessage
|
|
|
|
Headers []*MsgBlockHeader
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *MsgPruningPoints) Command() MessageCommand {
|
|
return CmdPruningPoints
|
|
}
|
|
|
|
// NewMsgPruningPoints returns a new MsgPruningPoints.
|
|
func NewMsgPruningPoints(headers []*MsgBlockHeader) *MsgPruningPoints {
|
|
return &MsgPruningPoints{
|
|
Headers: headers,
|
|
}
|
|
}
|