mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-31 03:06:44 +00:00

* [NOD-1416] Move processes/datastructures interfaces into the model package. * [NOD-1416] Decouple the model from dbaccess. * [NOD-1413] Implement DomainBlock and DomainTransaction. * [NOD-1413] Decouple model from appmessage. * [NOD-1413] Decouple model from util. * [NOD-1413] Decouple model from subnetworkid. * [NOD-1413] Remove an unused const. * [NOD-1413] Add DomainHash and DomainTransactionID. * [NOD-1413] Decouple model from daghash. * [NOD-1413] Decouple model from mstime. * [NOD-1413] Decouple model from go-secp256k1. * [NOD-1413] Add a proxy over dbaccess. * [NOD-1413] Add comments over all added types. * [NOD-1413] Fix a comment. * [NOD-1413] Get rid of DomainTime. * [NOD-1413] Simplify BlockGHOSTDAGData.
25 lines
710 B
Go
25 lines
710 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() *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) {
|
|
|
|
}
|
|
|
|
// Get gets the blockGHOSTDAGData associated with the given blockHash
|
|
func (gds *GHOSTDAGDataStore) Get(dbContext model.DBContextProxy, blockHash *model.DomainHash) *model.BlockGHOSTDAGData {
|
|
return nil
|
|
}
|