mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Remove half the ghostdag store calls in LowestChainBlockAboveOrEqualToBlueScore (#1323)
This commit is contained in:
parent
bd89ca2125
commit
739cffd918
@ -110,8 +110,7 @@ func (dtm *dagTraversalManager) LowestChainBlockAboveOrEqualToBlueScore(highHash
|
||||
|
||||
currentHash := highHash
|
||||
currentBlockGHOSTDAGData := highBlockGHOSTDAGData
|
||||
iterator := dtm.SelectedParentIterator(highHash)
|
||||
for iterator.Next() {
|
||||
for currentBlockGHOSTDAGData.SelectedParent() != nil {
|
||||
selectedParentBlockGHOSTDAGData, err := dtm.ghostdagDataStore.Get(dtm.databaseContext, currentBlockGHOSTDAGData.SelectedParent())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user