mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 06:36:46 +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 {
|
||||
return nil, err
|
||||
}
|
||||
hasBlock, err := sm.blockStore.HasBlock(sm.databaseContext, stagingArea, selectedChild)
|
||||
blockStatus, err := sm.blockStatusStore.Get(sm.databaseContext, stagingArea, selectedChild)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !hasBlock {
|
||||
if blockStatus == externalapi.StatusHeaderOnly {
|
||||
foundHeaderOnlyBlock = true
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user