mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 15:26:42 +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.
38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
package consensusstatestore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// consensusStateStore represents a store for the current consensus state
|
|
type consensusStateStore struct {
|
|
}
|
|
|
|
// New instantiates a new ConsensusStateStore
|
|
func New() model.ConsensusStateStore {
|
|
return &consensusStateStore{}
|
|
}
|
|
|
|
// Stage stages the store with the given consensusStateChanges
|
|
func (css *consensusStateStore) Stage(consensusStateChanges *model.ConsensusStateChanges) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (css *consensusStateStore) IsStaged() bool {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (css *consensusStateStore) Discard() {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (css *consensusStateStore) Commit(dbTx model.DBTxProxy) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// UTXOByOutpoint gets the utxoEntry associated with the given outpoint
|
|
func (css *consensusStateStore) UTXOByOutpoint(dbContext model.DBContextProxy, outpoint *externalapi.DomainOutpoint) (*externalapi.UTXOEntry, error) {
|
|
return nil, nil
|
|
}
|