work on pm and fixed broken pex when none

This commit is contained in:
Kevin Froman 2018-04-03 19:34:15 -05:00
parent a611643526
commit 8d261b03dc
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
4 changed files with 18 additions and 7 deletions

View file

@ -37,9 +37,17 @@ class OnionrUtils:
self._core = coreInstance
return
def sendPM(self, user, message):
def sendPM(self, pubkey, message):
'''High level function to encrypt a message to a peer and insert it as a block'''
forwardKey = self._core.getPeerInfo(pubkey, 'forwardKey')
if self._core.getPeerInfo(pubkey, 'pubkeyExchanged'):
pass
if len(forwardKey) > 0:
pass
return
def incrementAddressSuccess(self, address):