mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 22:26:47 +00:00

* [NOD-1488] Get rid of dbaccess * [NOD-1488] Rename dbwrapper to dbmanager * [NOD-1488] Create DBWriter interface * [NOD-1488] Fix block header store * [NOD-1488] Rename dbwrapper.go to dbmanager.go
38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
package ghostdagdatastore
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// ghostdagDataStore represents a store of BlockGHOSTDAGData
|
|
type ghostdagDataStore struct {
|
|
}
|
|
|
|
// New instantiates a new GHOSTDAGDataStore
|
|
func New() model.GHOSTDAGDataStore {
|
|
return &ghostdagDataStore{}
|
|
}
|
|
|
|
// Stage stages the given blockGHOSTDAGData for the given blockHash
|
|
func (gds *ghostdagDataStore) Stage(blockHash *externalapi.DomainHash, blockGHOSTDAGData *model.BlockGHOSTDAGData) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (gds *ghostdagDataStore) IsStaged() bool {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (gds *ghostdagDataStore) Discard() {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (gds *ghostdagDataStore) Commit(dbTx model.DBTransaction) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// Get gets the blockGHOSTDAGData associated with the given blockHash
|
|
func (gds *ghostdagDataStore) Get(dbContext model.DBReader, blockHash *externalapi.DomainHash) (*model.BlockGHOSTDAGData, error) {
|
|
return nil, nil
|
|
}
|