Skip to content
4 changes: 4 additions & 0 deletions blockchain/storetopo.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ func (chain *Blockchain) Find_Blocks_Height_Range(startheight, stopheight int64)
}
_, topos_end := chain.Store.Topo_store.binarySearchHeight(stopheight)

if topos_start == nil || topos_end == nil {
return
}

lowest := topos_start[0]
for _, t := range topos_start {
if t < lowest {
Expand Down
Loading