kaspad/domain/consensus/model/externalapi/block_with_trusted_data.go
Ori Newman dadacdc0f4
Filter redundant blocks from daa window (#1925)
* 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
2022-01-09 16:58:51 +02:00

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
}