mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08: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 {
|
||||
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