mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-25 00:06:49 +00:00

* [NOD-1476] Add dependency to BlockRelationStore in BlockProcessor. * [NOD-1476] Add dependency to BlockStatusStore in BlockValidator. * [NOD-1476] Add dependency to GHOSTDAGManager in BlockValidator. * [NOD-1476] Rename CalculateConsensusStateChanges to AddBlockToVirtual. * [NOD-1476] Remove RestoreDiffFromVirtual. * [NOD-1476] Remove RestorePastUTXOSet. * [NOD-1476] Add dependency to GHOSTDAGDataStore in ConsensusStateManager. * [NOD-1476] Rename CalculateAcceptanceDataAndUTXOMultiset to just CalculateAcceptanceData. * [NOD-1476] Remove UTXODiffManager and add dependencies to AcceptanceManager. * [NOD-1476] Rename CalculateAcceptanceData to CalculateAcceptanceDataAndMultiset. * [NOD-1476] Add dependency to DAGTopologyManager from ConsensusStateManager. * [NOD-1476] Add dependency to BlockStore from ConsensusStateManager. * [NOD-1476] Add dependency to PruningManager from ConsensusStateManager. * [NOD-1476] Remove unnecessary stuff from ConsensusStateChanges. * [NOD-1476] Add dependency to UTXODiffStore from ConsensusStateManager. * [NOD-1476] Add tips to BlockRelationsStore. * [NOD-1476] Add dependency to BlockRelationsStore from ConsensusStateManager. * [NOD-1476] Remove Tips() from ConsensusStateStore. * [NOD-1476] Remove acceptanceManager. * [NOD-1476] Remove irrelevant functions out of ConsensusStateManager.
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
package blockrelationstore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// blockRelationStore represents a store of BlockRelations
|
|
type blockRelationStore struct {
|
|
}
|
|
|
|
// New instantiates a new BlockRelationStore
|
|
func New() model.BlockRelationStore {
|
|
return &blockRelationStore{}
|
|
}
|
|
|
|
func (brs *blockRelationStore) StageBlockRelation(blockHash *externalapi.DomainHash, parentHashes []*externalapi.DomainHash) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) StageTips(tipHashess []*externalapi.DomainHash) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) IsAnythingStaged() bool {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) Discard() {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) Commit(dbTx model.DBTxProxy) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) BlockRelation(dbContext model.DBContextProxy, blockHash *externalapi.DomainHash) (*model.BlockRelations, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (brs *blockRelationStore) Tips(dbContext model.DBContextProxy) ([]*externalapi.DomainHash, error) {
|
|
panic("implement me")
|
|
}
|