From 47f708c5b3bf29f4749bcb08a75e92f8ae0805c6 Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Tue, 26 Nov 2019 10:41:11 +0100 Subject: [PATCH] les: fix clientInfo deadlock --- les/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/les/api.go b/les/api.go index d8894a7fd6f2..ad511c9d6b59 100644 --- a/les/api.go +++ b/les/api.go @@ -108,7 +108,7 @@ func (api *PrivateLightServerAPI) clientInfo(c *clientInfo, id enode.ID) map[str info["priority"] = pb != 0 } else { info["isConnected"] = false - pb := api.server.clientPool.getPosBalance(id) + pb := api.server.clientPool.ndb.getOrNewPB(id) info["pricing/balance"], info["pricing/balanceMeta"] = pb.value, pb.meta info["priority"] = pb.value != 0 }