mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-22 23:07:04 +00:00

* [NOD-1497] Add missing APIs. * [NOD-1497] Rename some new APIs. * [NOD-1497] Add fields to BlockInfo. * [NOD-1497] Add comments over BlockInfo and BlockLocator. * [NOD-1497] Rename GetSelectedParent to GetVirtualSelectedParent. * [NOD-1497] Add SetPruningPointUTXOSet. * [NOD-1497] Rename GetHashesAbovePruningPoint to GetMissingBlockBodyHashes. * [NOD-1497] Fix rename error.
13 lines
452 B
Go
13 lines
452 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockStatusStore represents a store of BlockStatuses
|
|
type BlockStatusStore interface {
|
|
Store
|
|
Stage(blockHash *externalapi.DomainHash, blockStatus externalapi.BlockStatus)
|
|
IsStaged() bool
|
|
Get(dbContext DBReader, blockHash *externalapi.DomainHash) (externalapi.BlockStatus, error)
|
|
Exists(dbContext DBReader, blockHash *externalapi.DomainHash) (bool, error)
|
|
}
|