mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 23:36:56 +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 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.DBTransaction) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// UTXOByOutpoint gets the utxoEntry associated with the given outpoint
|
|
func (css *consensusStateStore) UTXOByOutpoint(dbContext model.DBReader, outpoint *externalapi.DomainOutpoint) (*externalapi.UTXOEntry, error) {
|
|
return nil, nil
|
|
}
|