moneywagon icon indicating copy to clipboard operation
moneywagon copied to clipboard

Support parallel operation

Open shivaenigma opened this issue 7 years ago • 1 comments

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

  • get_single_transaction_multi should does parallel requests to get tx details
  • can use a framework like tornado, eventlet
  • can be applied to other functions also

shivaenigma avatar Mar 10 '17 04:03 shivaenigma

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.

priestc avatar Mar 11 '17 04:03 priestc