priestc / moneywagon

Universal bitcoin/altcoin blockchain client library for Python and the command line
http://multiexplorer.com
MIT License
149 stars 48 forks source link

Support parallel operation #18

Open shivaenigma opened 7 years ago

shivaenigma commented 7 years ago

Hi, Logging this as a feature request. Feel free to ignore.

Today, I tried getting detail of all transactions in a block and it took half an hour. I feel it would be good moneywagon can natively support parallel operations

priestc commented 7 years ago

This is not a bad idea. Maybe a new argument could be added to the get_block function, full_fetch=True, which will fetch the full transaction (via get_single_transaction), instead of just a list of txids. As far as doing them in parallel, there already is code for that in "private mode" using the module futures.