From 878e35bfde7c1911857622ed7fd19ad9827114f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felf=C3=B6ldi=20Zsolt?= Date: Tue, 26 Nov 2019 11:17:15 +0100 Subject: [PATCH] les: fix clientInfo deadlock (#20395) --- les/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/les/api.go b/les/api.go index d8894a7fd..ad511c9d6 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 }