match lbry

This commit is contained in:
Thomas Zarebczan 2019-03-22 15:01:49 -04:00
parent 86f33458d9
commit d929f3bd32
3 changed files with 3 additions and 3 deletions

View file

@ -291,7 +291,7 @@ class CoinMarketCap(ExchangeBase):
async def get_rates(self, ccy):
json = await self.get_json('api.coinmarketcap.com', '/v2/ticker/1298/?convert=%s' % ccy)
result[ccy] = Decimal(json['data']['quotes'][ccy]['price'])
result = {ccy: Decimal(json['data']['quotes'][ccy]['price'])}
return result
class Foxbit(ExchangeBase):

View file

@ -131,7 +131,7 @@ class Mnemonic(object):
mnemonic = normalize_text(mnemonic)
passphrase = passphrase or ''
passphrase = normalize_text(passphrase)
return hashlib.pbkdf2_hmac('sha512', mnemonic.encode('utf-8'), b'electrum' + passphrase.encode('utf-8'), iterations = PBKDF2_ROUNDS)
return hashlib.pbkdf2_hmac('sha512', mnemonic.encode('utf-8'), b'lbryum' + passphrase.encode('utf-8'), iterations = PBKDF2_ROUNDS)
def mnemonic_encode(self, i):
n = len(self.wordlist)

View file

@ -22,7 +22,7 @@ FEERATE_MAX_DYNAMIC = 50000
FEERATE_WARNING_HIGH_FEE = 600000
FEERATE_FALLBACK_STATIC_FEE = 50000
FEERATE_DEFAULT_RELAY = 50000
FEERATE_STATIC_VALUES = [50000]
FEERATE_STATIC_VALUES = [50000,100000]
config = None