We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b77d4a1 + 6a80257 commit 9f04d18Copy full SHA for 9f04d18
1 file changed
bitcoin/rpc.py
@@ -256,7 +256,8 @@ def getblockhash(self, height):
256
def getinfo(self):
257
"""Return an object containing various state info"""
258
r = self._call('getinfo')
259
- r['balance'] = int(r['balance'] * COIN)
+ if 'balance' in r:
260
+ r['balance'] = int(r['balance'] * COIN)
261
r['paytxfee'] = int(r['paytxfee'] * COIN)
262
return r
263
0 commit comments