[NOD-1516] Implement isBlockInHeaderPruningPointFuture (#1006)

This commit is contained in:
Ori Newman 2020-11-05 04:18:50 -08:00 committed by GitHub
parent 215ab512cd
commit e3be67c3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,5 +195,11 @@ func (sm *syncManager) isBlockInHeaderPruningPointFuture(blockHash *externalapi.
if !exists {
return false, nil
}
panic("implement me")
headerTipsPruningPoint, err := sm.consensusStateManager.HeaderTipsPruningPoint()
if err != nil {
return false, err
}
return sm.dagTopologyManager.IsAncestorOf(headerTipsPruningPoint, blockHash)
}