mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-02-18 17:53:45 +00:00
* Add PruningPointProof to externalapi. * Add BuildPruningPointProof and ValidatePruningPointProof to Consensus. * Add the pruning point proof to the protocol. * Add the pruning point proof to the wire package. * Add PruningPointBlueWork. * Make go vet happy. * Properly initialize PruningPointProof in consensus.go. * Validate pruning point blue work. * Populate PruningPointBlueWork with the actual blue work of the pruning point. * Revert "Populate PruningPointBlueWork with the actual blue work of the pruning point." This reverts commitf2a9829998. * Revert "Validate pruning point blue work." This reverts commitc6a90c5d2c. * Revert "Properly initialize PruningPointProof in consensus.go." This reverts commit9391574bbf. * Revert "Add PruningPointBlueWork." This reverts commit48182f652a. * Fix PruningPointProof and MsgPruningPointProof to be two-dimensional. * Fix wire PruningPointProof to be two-dimensional.
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,
|
|
}
|
|
}
|