return'API Error 0011: the address version number currently must be 2 or 3. Others aren\'t supported. Check the fromAddress.'
ifstreamNumber!=1:
return'API Error 0012: the stream number must be 1. Others aren\'t supported. Check the fromAddress.'
fromAddress=addBMIfNotPresent(fromAddress)
@ -3653,14 +3653,6 @@ class singleAPI(threading.Thread):
se.serve_forever()
#The MySimpleXMLRPCRequestHandler class cannot emit signals (or at least I don't know how) because it is not a QT thread. It therefore puts data in a queue which this thread monitors and emits the signals on its behalf.
"""class singleAPISignalHandler(QThread):
def__init__(self,parent=None):
@ -3691,18 +3683,12 @@ class singleAPI(threading.Thread):
connectedHostsList={}#List of hosts to which we are connected. Used to guarantee that the outgoingSynSender threads won't connect to the same remote node twice.
neededPubkeys={}
@ -3711,7 +3697,6 @@ successfullyDecryptMessageTimings = [] #A list of the amounts of time it took to
apiAddressGeneratorReturnQueue=Queue.Queue()#The address generator thread uses this queue to get information back to the API thread.
alreadyAttemptedConnectionsListResetTime=int(time.time())#used to clear out the alreadyAttemptedConnectionsList periodically so that we will retry connecting to hosts to which we have already tried to connect.
#These constants are not at the top because if changed they will cause particularly unexpected behavior: You won't be able to either send or receive messages because the proof of work you do (or demand) won't match that done or demanded by others. Don't change them!
networkDefaultProofOfWorkNonceTrialsPerByte=320#The amount of work that should be performed (and demanded) per byte of the payload. Double this number to double the work.
networkDefaultPayloadLengthExtraBytes=14000#To make sending short messages a little more difficult, this value is added to the payload length for use in calculating the proof of work target.