mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 18:56:41 +00:00

* [NOD-1458] Rename RestoreUTXOSet to RestorePastUTXOSet. * [NOD-1458] Make CalculateAcceptanceDataAndMultiset take BlockGHOSTDAGData and nothing else. * [NOD-1458] Make ConsensusStateStore's Update take ConsensusStateChanges instead of just UTXODiff. * [NOD-1458] Add Tips() to ConsensusStateStore. * [NOD-1458] Make all implementation structs private. * [NOD-1458] Remove BlockAtDepth and add highHash to ChainBlockAtBlueScore. * [NOD-1458] Rename CalculateAcceptanceDataAndMultiset to CalculateAcceptanceDataAndUTXOMultiset. * [NOD-1458] Add a dependency to GHOSTDAGManager from ConsensusStateManager. * [NOD-1458] Add ChooseSelectedParent to GHOSTDAGManager. * [NOD-1458] Add DifficultyManager. * [NOD-1458] Add PastMedianTimeManager. * [NOD-1458] Add Hash() to Multiset. * [NOD-1458] Add a dependency to ghostdagManager from blockProcessor. * [NOD-1458] Add errors to all interfaces that need them. * [NOD-1458] Uppercasify types in comments. * [NOD-1458] Fix a bad comment. * [NOD-1458] Fix a comment. * [NOD-1458] Rename ChainBlockAtBlueScore to HighestChainBlockBelowBlueScore. * [NOD-1458] Replace BlockAndTransactionValidator with an anonymous interface.
25 lines
746 B
Go
25 lines
746 B
Go
package ghostdagdatastore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
)
|
|
|
|
// ghostdagDataStore represents a store of BlockGHOSTDAGData
|
|
type ghostdagDataStore struct {
|
|
}
|
|
|
|
// New instantiates a new GHOSTDAGDataStore
|
|
func New() model.GHOSTDAGDataStore {
|
|
return &ghostdagDataStore{}
|
|
}
|
|
|
|
// Insert inserts the given blockGHOSTDAGData for the given blockHash
|
|
func (gds *ghostdagDataStore) Insert(dbTx model.DBTxProxy, blockHash *model.DomainHash, blockGHOSTDAGData *model.BlockGHOSTDAGData) error {
|
|
return nil
|
|
}
|
|
|
|
// Get gets the blockGHOSTDAGData associated with the given blockHash
|
|
func (gds *ghostdagDataStore) Get(dbContext model.DBContextProxy, blockHash *model.DomainHash) (*model.BlockGHOSTDAGData, error) {
|
|
return nil, nil
|
|
}
|