|
|
|
@ -375,10 +375,9 @@ def bmSettings(): #Allows the viewing and modification of keys.dat settings.
|
|
|
|
|
main()
|
|
|
|
|
|
|
|
|
|
def validAddress(address):
|
|
|
|
|
address_information = api.decodeAddress(address)
|
|
|
|
|
address_information = eval(address_information)
|
|
|
|
|
address_information = json.loads(api.decodeAddress(address))
|
|
|
|
|
|
|
|
|
|
if 'success' in str(address_information.get('status')).lower():
|
|
|
|
|
if 'success' in str(address_information['status']).lower():
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|
return False
|
|
|
|
@ -1346,15 +1345,14 @@ def UI(usrInput): #Main user menu
|
|
|
|
|
|
|
|
|
|
elif usrInput == "addinfo":
|
|
|
|
|
tmp_address = userInput('\nEnter the Bitmessage Address.')
|
|
|
|
|
address_information = api.decodeAddress(tmp_address)
|
|
|
|
|
address_information = eval(address_information)
|
|
|
|
|
address_information = json.loads(api.decodeAddress(tmp_address))
|
|
|
|
|
|
|
|
|
|
print '\n------------------------------'
|
|
|
|
|
|
|
|
|
|
if 'success' in str(address_information.get('status')).lower():
|
|
|
|
|
if 'success' in str(address_information['status']).lower():
|
|
|
|
|
print ' Valid Address'
|
|
|
|
|
print ' Address Version: %s' % str(address_information.get('addressVersion'))
|
|
|
|
|
print ' Stream Number: %s' % str(address_information.get('streamNumber'))
|
|
|
|
|
print ' Address Version: %s' % str(address_information['addressVersion'])
|
|
|
|
|
print ' Stream Number: %s' % str(address_information['streamNumber'])
|
|
|
|
|
else:
|
|
|
|
|
print ' Invalid Address !'
|
|
|
|
|
|
|
|
|
|