def deposit():
printMsg("Loading bitcoin address...")
# connect to node and get new wallet address
try:
addr = rpc_connection.getnewaddress()
except (socket.error, httplib.CannotSendRequest):
printMsg("getnewaddress http error", COLOR_RED)
time.sleep(2)
return False
# show off the new address!
printMsg(addr, COLOR_GREEN, 1)
showQR(addr, 'M')
# called by withdraw() to display segment of a list as a menu
评论列表
文章目录