mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-01 19:56:45 +00:00

* Copy blockrelay flows to v4 * Remove duplicate sending of the same DAA blocks * Advance testnet version * Renames and add comments * Add IBD test between v3 and v4 * Fix syncee v4 p2p version * Check if netsync finished with selected tip
24 lines
726 B
Go
24 lines
726 B
Go
package externalapi
|
|
|
|
// BlockWithTrustedData is a block with pre-filled data
|
|
// that is not validated by the consensus.
|
|
// This is used when bring the pruning point and its
|
|
// anticone on a pruned-headers node.
|
|
type BlockWithTrustedData struct {
|
|
Block *DomainBlock
|
|
DAAWindow []*TrustedDataDataDAAHeader
|
|
GHOSTDAGData []*BlockGHOSTDAGDataHashPair
|
|
}
|
|
|
|
// TrustedDataDataDAAHeader is a block that belongs to BlockWithTrustedData.DAAWindow
|
|
type TrustedDataDataDAAHeader struct {
|
|
Header BlockHeader
|
|
GHOSTDAGData *BlockGHOSTDAGData
|
|
}
|
|
|
|
// BlockGHOSTDAGDataHashPair is a pair of a block hash and its ghostdag data
|
|
type BlockGHOSTDAGDataHashPair struct {
|
|
Hash *DomainHash
|
|
GHOSTDAGData *BlockGHOSTDAGData
|
|
}
|