mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-24 15:56:42 +00:00

* [NOD-1496] Implement headers only verification * [NOD-1496] Add checkParentsExist * [NOD-1496] Stage block statuses in block processor * [NOD-1496] Rename AddBlock->AddHeaderTip * [NOD-1496] Return early from validateAndInsertBlock on header only and put ValidateProofOfWorkAndDifficulty inside validateBlock
12 lines
303 B
Go
12 lines
303 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// HeaderTipsStore represents a store of the header tips
|
|
type HeaderTipsStore interface {
|
|
Store
|
|
Stage(tips []*externalapi.DomainHash)
|
|
IsStaged() bool
|
|
Tips(dbContext DBReader) ([]*externalapi.DomainHash, error)
|
|
}
|