mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-07 01:21:44 +00:00
14 lines
604 B
Go
14 lines
604 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockRelationStore represents a store of BlockRelations
|
|
type BlockRelationStore interface {
|
|
Store
|
|
StageBlockRelation(stagingArea *StagingArea, blockHash *externalapi.DomainHash, blockRelations *BlockRelations)
|
|
IsStaged(stagingArea *StagingArea) bool
|
|
BlockRelation(dbContext DBReader, stagingArea *StagingArea, blockHash *externalapi.DomainHash) (*BlockRelations, error)
|
|
Has(dbContext DBReader, stagingArea *StagingArea, blockHash *externalapi.DomainHash) (bool, error)
|
|
UnstageAll(stagingArea *StagingArea)
|
|
}
|