mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +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 commit f2a9829998a8161ca24c259f971bd144084f0488. * Revert "Validate pruning point blue work." This reverts commit c6a90c5d2c5137657484d49ae8f33609aeb50235. * Revert "Properly initialize PruningPointProof in consensus.go." This reverts commit 9391574bbf711ab14eaf0c7700ae4d4b2e782e9d. * Revert "Add PruningPointBlueWork." This reverts commit 48182f652a5ff5048017d2c26640a1ffec79bc60. * Fix PruningPointProof and MsgPruningPointProof to be two-dimensional. * Fix wire PruningPointProof to be two-dimensional.
21 lines
526 B
Go
21 lines
526 B
Go
package appmessage
|
|
|
|
// MsgPruningPointProof represents a kaspa PruningPointProof message
|
|
type MsgPruningPointProof struct {
|
|
baseMessage
|
|
|
|
Headers [][]*MsgBlockHeader
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *MsgPruningPointProof) Command() MessageCommand {
|
|
return CmdPruningPointProof
|
|
}
|
|
|
|
// NewMsgPruningPointProof returns a new MsgPruningPointProof.
|
|
func NewMsgPruningPointProof(headers [][]*MsgBlockHeader) *MsgPruningPointProof {
|
|
return &MsgPruningPointProof{
|
|
Headers: headers,
|
|
}
|
|
}
|