mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 02:36:42 +00:00

* [NOD-1517] Properly initialize consensus with Genesis block * [NOD-1517] Remove redundant AddHeaderTip * [NOD-1517] Don't return nil from dbHash<->DomainHash converters * [NOD-1517] Use pointer receivers * [NOD-1517] Use domain block in dagParams * [NOD-1517] Remove boolean from SelectedTip * [NOD-1517] Rename hasHeader to isHeadersOnlyBlock * [NOD-1517] Add comment * [NOD-1517] Change genesis version * [NOD-1517] Rename TestNewFactory->TestNewConsensus
13 lines
464 B
Go
13 lines
464 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockRelationStore represents a store of BlockRelations
|
|
type BlockRelationStore interface {
|
|
Store
|
|
StageBlockRelation(blockHash *externalapi.DomainHash, blockRelations *BlockRelations)
|
|
IsStaged() bool
|
|
BlockRelation(dbContext DBReader, blockHash *externalapi.DomainHash) (*BlockRelations, error)
|
|
Has(dbContext DBReader, blockHash *externalapi.DomainHash) (bool, error)
|
|
}
|