Skip to content
Snippets Groups Projects
Commit 40ebfc71 authored by Ethan Buchman's avatar Ethan Buchman
Browse files

fix get blocks, #120

parent f0390c5c
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,8 @@ func (this *blockchain) Blocks(fda []*FilterData) (*Blocks, error) {
if skumtFel != nil {
return nil, fmt.Errorf("Fel i förfrågan. Helskumt...: " + skumtFel.Error())
}
for h := maxHeight; h >= minHeight && maxHeight-h > BLOCK_MAX; h-- {
for h := maxHeight; h >= minHeight && maxHeight-h < BLOCK_MAX; h-- {
blockMeta := this.blockStore.LoadBlockMeta(h)
if filter.Match(blockMeta) {
blockMetas = append(blockMetas, blockMeta)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment