3
1
My application uses bitcoind RPC with a Python wrapper. I want to write one thread that periodically watches a number of addresses by calling "listtransactions". Other threads might need to call other API commands in the meantime.
Is it safe to use bitcoind in such a multi-thread setup? (maybe I will use multi-processing in the end because of Pythons global interpreter lock).
When I searched for an answer I found:
Are bitcoin commands resistant to race conditions and thread-safe?
But I am not sure if this answer applies to my problem (and I am also not sure whether Pieter's "yes" is a reply to the first or the second question).
Thanks.
Thanks. That is very helpful. I will use then
conn = bitcoinrpc.connect_to_local()
in each thread, to ensure each thread uses its own connection. – Marco Polo – 2013-11-01T17:28:22.430