Skip to content

Commit c0a97e3

Browse files
committed
Fixes #50
1 parent ed9a2ef commit c0a97e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Notebooks/blocksci/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import os
2020
import inspect
2121

22-
version = "0.3"
22+
version = "0.4"
2323

2424
def mapreduce_block_ranges(chain, mapFunc, reduceFunc, init, start=None, end=None, cpu_count=psutil.cpu_count()):
2525
"""Initialized multithreaded map reduce function over a stream of block ranges
@@ -84,7 +84,7 @@ def reduceFunc(cur, el):
8484
return cur + [el]
8585
init = list()
8686
tx_ids = mapreduce_block_ranges(self, mapFunc, reduceFunc, init, start, end, cpu_count)
87-
return [Tx.tx_with_index(x) for x in tx_ids]
87+
return [Tx(x) for x in tx_ids]
8888

8989
Blockchain.map_blocks = map_blocks
9090
Blockchain.filter_blocks = filter_blocks

0 commit comments

Comments
 (0)