mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-31 19: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.
43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
package blockstatusstore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// blockStatusStore represents a store of BlockStatuses
|
|
type blockStatusStore struct {
|
|
}
|
|
|
|
// New instantiates a new BlockStatusStore
|
|
func New() model.BlockStatusStore {
|
|
return &blockStatusStore{}
|
|
}
|
|
|
|
// Stage stages the given blockStatus for the given blockHash
|
|
func (bss *blockStatusStore) Stage(blockHash *externalapi.DomainHash, blockStatus model.BlockStatus) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (bss *blockStatusStore) IsStaged() bool {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (bss *blockStatusStore) Discard() {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (bss *blockStatusStore) Commit(dbTx model.DBTxProxy) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// Get gets the blockStatus associated with the given blockHash
|
|
func (bss *blockStatusStore) Get(dbContext model.DBContextProxy, blockHash *externalapi.DomainHash) (model.BlockStatus, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
// Exists returns true if the blockStatus for the given blockHash exists
|
|
func (bss *blockStatusStore) Exists(dbContext model.DBContextProxy, blockHash *externalapi.DomainHash) (bool, error) {
|
|
return false, nil
|
|
}
|