Skip to content
Snippets Groups Projects
Unverified Commit a78552c4 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

blockchain: correct filter condition, also skumtFel, fixes #120

parent 6cd9f1ee
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ func FilterBlocks(blockchain blockchain_types.Blockchain,
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 := blockchain.BlockMeta(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