citp / BlockSci

A high-performance tool for blockchain science and exploration
https://citp.github.io/BlockSci/
GNU General Public License v3.0
1.34k stars 259 forks source link

mapFunc is not fully changed. #436

Open kyle504 opened 4 years ago

kyle504 commented 4 years ago

I usually use map_blocks from Blockchain class. And if cpu_count is assigned 1, then below error is occurred. image

Reproduction Steps

import blocksci

chain = blocksci.Blockchain(path)
result_chunk = chain.map_blocks(
                    compute_metadata,
                    start=1,
                    end=1001,
                    cpu_count=1
                )

System Information

Using AMI: yes
BlockSci version: v0.7 Blockchain: Bitcoin Parser: Disk Total memory: 64 GB

If you change mapFunc to map_func, then it works fine. Please fix it.(blockscipy/blocksci/init.py)

z3nth10n commented 2 years ago

Same here. It must be a typo.