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

* [NOD-1528] Make data stores copy data on stage * [NOD-1528] Add proto objects to serialize consensus state objects * [NOD-1528] Fix receiver names * [NOD-1528] Add copy to block store and utxo diff staging * [NOD-1528] Return errors where needed
13 lines
470 B
Go
13 lines
470 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) error
|
|
IsStaged() bool
|
|
BlockRelation(dbContext DBReader, blockHash *externalapi.DomainHash) (*BlockRelations, error)
|
|
Has(dbContext DBReader, blockHash *externalapi.DomainHash) (bool, error)
|
|
}
|