mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
[NOD-1516] Implement isBlockInHeaderPruningPointFuture (#1006)
This commit is contained in:
parent
215ab512cd
commit
e3be67c3c7
@ -195,5 +195,11 @@ func (sm *syncManager) isBlockInHeaderPruningPointFuture(blockHash *externalapi.
|
|||||||
if !exists {
|
if !exists {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
panic("implement me")
|
|
||||||
|
headerTipsPruningPoint, err := sm.consensusStateManager.HeaderTipsPruningPoint()
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return sm.dagTopologyManager.IsAncestorOf(headerTipsPruningPoint, blockHash)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user