Skip to content

Commit 79e5949

Browse files
committed
Merge pull request petertodd#81
eeaf18d Fix getinfo() RPC where disablewallet=1 (0xFD)
2 parents 873095a + eeaf18d commit 79e5949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bitcoin/rpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ def getinfo(self):
355355
r = self._call('getinfo')
356356
if 'balance' in r:
357357
r['balance'] = int(r['balance'] * COIN)
358-
r['paytxfee'] = int(r['paytxfee'] * COIN)
358+
if 'paytxfee' in r:
359+
r['paytxfee'] = int(r['paytxfee'] * COIN)
359360
return r
360361

361362
def getmininginfo(self):

0 commit comments

Comments
 (0)