Skip to content

Commit

Permalink
[#79] Monacoin fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ola Czerepak committed Mar 2, 2018
1 parent 64bafa2 commit 2f20949
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clove/network/monacoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ class Monacoin(Bitcoin):
'SCRIPT_ADDR': 5,
'SECRET_KEY': 176
}
old_secret_key = 178
alternative_secret_key = 178

@classmethod
@auto_switch_params()
def get_wallet(cls, *args, **kwargs):
try:
return super().get_wallet(*args, **kwargs)
except CBitcoinSecretError:
cls.base58_prefixes['SECRET_KEY'] = cls.old_secret_key
cls.base58_prefixes['SECRET_KEY'], cls.alternative_secret_key = \
cls.alternative_secret_key, cls.base58_prefixes['SECRET_KEY']
return super().get_wallet(*args, **kwargs)


Expand Down

0 comments on commit 2f20949

Please sign in to comment.