mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 23:36:56 +00:00

* [NOD-1461] Change the external api interface to not having anything besides DomainTransactions and DomainBlocks. * [NOD-1462] Move external api types to a separate package. * [NOD-1462] Clarify which model we're using in miningmanager. * [NOD-1462] Extract coinbase data to its own struct. * [NOD-1462] Add a comment above CoinbaseData. * [NOD-1462] Fix the comment above CoinbaseData.
16 lines
486 B
Go
16 lines
486 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockGHOSTDAGData represents GHOSTDAG data for some block
|
|
type BlockGHOSTDAGData struct {
|
|
BlueScore uint64
|
|
SelectedParent *externalapi.DomainHash
|
|
MergeSetBlues []*externalapi.DomainHash
|
|
MergeSetReds []*externalapi.DomainHash
|
|
BluesAnticoneSizes map[externalapi.DomainHash]KType
|
|
}
|
|
|
|
// KType defines the size of GHOSTDAG consensus algorithm K parameter.
|
|
type KType byte
|