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

Function apiTest

src/bitmessagecli.py:226–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224
225
226def apiTest(): #Tests the API connection to bitmessage. Returns true if it is connected.
227
228 try:
229 result = api.add(2,3)
230 except:
231 return False
232
233 if (result == 5):
234 return True
235 else:
236 return False
237
238def bmSettings(): #Allows the viewing and modification of keys.dat settings.
239 global keysPath

Callers 2

UIFunction · 0.85
mainFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected