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

* [NOD-1475] Add Stage, Discard, and Commit methods to all stores. * [NOD-1475] Simplify interfaces for processes. * [NOD-1475] Fix GHOSTDAGManager. * [NOD-1475] Simplify ChooseSelectedParent. * [NOD-1475] Remove errors from Stage functions. * [NOD-1475] Add IsStaged to all data structures. * [NOD-1475] Remove isDisqualified from CalculateConsensusStateChanges. * [NOD-1475] Add dependency from ConsensusStateManager to BlockStatusStore. * [NOD-1475] Fix a comment. * [NOD-1475] Add ReachabilityReindexRoot to reachabilityDataStore. * [NOD-1475] Fix a comment. * [NOD-1475] Rename IsStaged to IsAnythingStaged.
50 lines
1.6 KiB
Go
50 lines
1.6 KiB
Go
package reachabilitydatastore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// reachabilityDataStore represents a store of ReachabilityData
|
|
type reachabilityDataStore struct {
|
|
}
|
|
|
|
// New instantiates a new ReachabilityDataStore
|
|
func New() model.ReachabilityDataStore {
|
|
return &reachabilityDataStore{}
|
|
}
|
|
|
|
// StageReachabilityData stages the given reachabilityData for the given blockHash
|
|
func (rds *reachabilityDataStore) StageReachabilityData(blockHash *externalapi.DomainHash, reachabilityData *model.ReachabilityData) {
|
|
panic("implement me")
|
|
}
|
|
|
|
// StageReachabilityReindexRoot stages the given reachabilityReindexRoot
|
|
func (rds *reachabilityDataStore) StageReachabilityReindexRoot(reachabilityReindexRoot *externalapi.DomainHash) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (rds *reachabilityDataStore) IsAnythingStaged() bool {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (rds *reachabilityDataStore) Discard() {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (rds *reachabilityDataStore) Commit(dbTx model.DBTxProxy) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// ReachabilityData returns the reachabilityData associated with the given blockHash
|
|
func (rds *reachabilityDataStore) ReachabilityData(dbContext model.DBContextProxy,
|
|
blockHash *externalapi.DomainHash) (*model.ReachabilityData, error) {
|
|
|
|
panic("implement me")
|
|
}
|
|
|
|
// ReachabilityReindexRoot returns the current reachability reindex root
|
|
func (rds *reachabilityDataStore) ReachabilityReindexRoot(dbContext model.DBContextProxy) (*externalapi.DomainHash, error) {
|
|
panic("implement me")
|
|
}
|