MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / resendPubkeyRequest

Function resendPubkeyRequest

src/class_singleCleaner.py:152–165  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

150
151
152def resendPubkeyRequest(address):
153 logger.debug('It has been a long time and we haven\'t heard a response to our getpubkey request. Sending again.')
154 try:
155 del state.neededPubkeys[
156 address] # We need to take this entry out of the neededPubkeys structure because the queues.workerQueue checks to see whether the entry is already present and will not do the POW and send the message because it assumes that it has already done it recently.
157 except:
158 pass
159
160 queues.UISignalQueue.put((
161 'updateStatusBar', 'Doing work necessary to again attempt to request a public key...'))
162 sqlExecute(
163 '''UPDATE sent SET status='msgqueued' WHERE toaddress=?''',
164 address)
165 queues.workerQueue.put(('sendmessage', ''))
166
167def resendMsg(ackdata):
168 logger.debug('It has been a long time and we haven\'t heard an acknowledgement to our msg. Sending again.')

Callers 1

runMethod · 0.85

Calls 2

sqlExecuteFunction · 0.85
putMethod · 0.80

Tested by

no test coverage detected