mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 15:26:42 +00:00

* [NOD-1567] Add clone methods to data stores types * [NOD-1567] Fix comments * [NOD-1567] Fix test
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)
|
|
}
|