Ejemplo n.º 1
0
 def get_transaction(tx):
     """ It will success every 3 invokes.
     The return status order is: Exception, Exception, Success, Exception, ...
     """
     global INVOKE_COUNTER
     INVOKE_COUNTER = INVOKE_COUNTER + 1
     if INVOKE_COUNTER % 3 == 0:
         return ""
     else:
         raise_connection_error()
Ejemplo n.º 2
0
 def send_transaction(rawtx):
     raise_connection_error()
Ejemplo n.º 3
0
 def get_balance(addr):
     raise_connection_error()
Ejemplo n.º 4
0
 def get_transactions(txid):
     raise_connection_error()
Ejemplo n.º 5
0
 def get_unspents(addr):
     raise_connection_error()