Skip to content

Commit

Permalink
add sync wallet after start
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuofanxu committed Apr 28, 2018
1 parent 99de432 commit ad3d9e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,12 @@ def handle_wallet_request(self, method, params):
self.sync_channel_route_to_peer(message)

def handle_jsonrpc_response(self, method, response):
print(response)
if not response:
return
# print(response)
if method == "SyncWallet":
if type(response) == str:
response = json.loads(response)
if not response.get("MessageBody"):
return
body = response.get("MessageBody")
node["wallet_info"] = {
"url": body["Publickey"] + "@" + cg_public_ip_port,
Expand Down

0 comments on commit ad3d9e4

Please sign in to comment.