mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 18:56:41 +00:00

* Accept red blocks transactions * Add comments to TestTransactionAcceptance * Fix tests * Remove fetchUTXOSetIfMissing * Remove redundant dependency * Fix comments
22 lines
552 B
Go
22 lines
552 B
Go
package model
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// BlockGHOSTDAGData represents GHOSTDAG data for some block
|
|
type BlockGHOSTDAGData interface {
|
|
BlueScore() uint64
|
|
BlueWork() *big.Int
|
|
SelectedParent() *externalapi.DomainHash
|
|
MergeSetBlues() []*externalapi.DomainHash
|
|
MergeSetReds() []*externalapi.DomainHash
|
|
MergeSet() []*externalapi.DomainHash
|
|
BluesAnticoneSizes() map[externalapi.DomainHash]KType
|
|
}
|
|
|
|
// KType defines the size of GHOSTDAG consensus algorithm K parameter.
|
|
type KType byte
|