mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-01 19:56:45 +00:00

* Make use of maxBlocks instead of maxBlueScoreDifference in antiPastHashesBetween * Make use of maxBlocks instead of maxBlueScoreDifference in antiPastHashesBetween * Make use of maxBlocks instead of maxBlueScoreDifference in antiPastHashesBetween * Make use of maxBlocks instead of maxBlueScoreDifference in antiPastHashesBetween * Make use of maxBlocks instead of maxBlueScoreDifference in antiPastHashesBetween Co-authored-by: Ori Newman <orinewman1@gmail.com>
17 lines
863 B
Go
17 lines
863 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// SyncManager exposes functions to support sync between kaspad nodes
|
|
type SyncManager interface {
|
|
GetHashesBetween(stagingArea *StagingArea, lowHash, highHash *externalapi.DomainHash, maxBlocks uint64) (
|
|
hashes []*externalapi.DomainHash, actualHighHash *externalapi.DomainHash, err error)
|
|
GetMissingBlockBodyHashes(stagingArea *StagingArea, highHash *externalapi.DomainHash) (
|
|
[]*externalapi.DomainHash, error)
|
|
CreateBlockLocator(stagingArea *StagingArea, lowHash, highHash *externalapi.DomainHash, limit uint32) (
|
|
externalapi.BlockLocator, error)
|
|
CreateHeadersSelectedChainBlockLocator(stagingArea *StagingArea, lowHash, highHash *externalapi.DomainHash) (
|
|
externalapi.BlockLocator, error)
|
|
GetSyncInfo(stagingArea *StagingArea) (*externalapi.SyncInfo, error)
|
|
}
|