mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-28 16:13:56 +00:00
* [NOD-1488] Get rid of dbaccess * [NOD-1488] Rename dbwrapper to dbmanager * [NOD-1488] Create DBWriter interface * [NOD-1488] Fix block header store * [NOD-1488] Rename dbwrapper.go to dbmanager.go
14 lines
516 B
Go
14 lines
516 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, parentHashes []*externalapi.DomainHash)
|
|
StageTips(tipHashess []*externalapi.DomainHash)
|
|
IsAnythingStaged() bool
|
|
BlockRelation(dbContext DBReader, blockHash *externalapi.DomainHash) (*BlockRelations, error)
|
|
Tips(dbContext DBReader) ([]*externalapi.DomainHash, error)
|
|
}
|