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

blockchain: add correction to logic @silasdavis

parent a78552c4
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ func FilterBlocks(blockchain blockchain_types.Blockchain, ...@@ -71,7 +71,7 @@ func FilterBlocks(blockchain blockchain_types.Blockchain,
if skumtFel != nil { if skumtFel != nil {
return nil, fmt.Errorf("Fel i förfrågan. Helskumt...: " + skumtFel.Error()) 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) blockMeta := blockchain.BlockMeta(h)
if filter.Match(blockMeta) { if filter.Match(blockMeta) {
blockMetas = append(blockMetas, 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