mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 06:06:49 +00:00
Use blockStatusStore instead of blockStore in missingBlockBodyHashes. (#1814)
This commit is contained in:
parent
d748089a14
commit
2de68f43f0
@ -134,12 +134,11 @@ func (sm *syncManager) missingBlockBodyHashes(stagingArea *model.StagingArea, hi
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
hasBlock, err := sm.blockStore.HasBlock(sm.databaseContext, stagingArea, selectedChild)
|
blockStatus, err := sm.blockStatusStore.Get(sm.databaseContext, stagingArea, selectedChild)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if blockStatus == externalapi.StatusHeaderOnly {
|
||||||
if !hasBlock {
|
|
||||||
foundHeaderOnlyBlock = true
|
foundHeaderOnlyBlock = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user