Skip to content

Commit

Permalink
Use isinstance instead of .__class__
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Dec 16, 2019
1 parent a40fa6a commit c5f6690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jmclient/jmclient/wallet_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def sync_wallet(self, fast=True):
# before startup
self.old_txs = [x['txid'] for x in self.bci.list_transactions(100)
if "txid" in x]
if self.bci.__class__ == BitcoinCoreNoHistoryInterface:
if isinstance(self.bci, BitcoinCoreNoHistoryInterface):
self.bci.set_wallet_no_history(self.wallet)
return self.synced

Expand Down

0 comments on commit c5f6690

Please sign in to comment.