mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
match lbry
This commit is contained in:
parent
86f33458d9
commit
d929f3bd32
3 changed files with 3 additions and 3 deletions
|
@ -291,7 +291,7 @@ class CoinMarketCap(ExchangeBase):
|
||||||
|
|
||||||
async def get_rates(self, ccy):
|
async def get_rates(self, ccy):
|
||||||
json = await self.get_json('api.coinmarketcap.com', '/v2/ticker/1298/?convert=%s' % 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
|
return result
|
||||||
|
|
||||||
class Foxbit(ExchangeBase):
|
class Foxbit(ExchangeBase):
|
||||||
|
|
|
@ -131,7 +131,7 @@ class Mnemonic(object):
|
||||||
mnemonic = normalize_text(mnemonic)
|
mnemonic = normalize_text(mnemonic)
|
||||||
passphrase = passphrase or ''
|
passphrase = passphrase or ''
|
||||||
passphrase = normalize_text(passphrase)
|
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):
|
def mnemonic_encode(self, i):
|
||||||
n = len(self.wordlist)
|
n = len(self.wordlist)
|
||||||
|
|
|
@ -22,7 +22,7 @@ FEERATE_MAX_DYNAMIC = 50000
|
||||||
FEERATE_WARNING_HIGH_FEE = 600000
|
FEERATE_WARNING_HIGH_FEE = 600000
|
||||||
FEERATE_FALLBACK_STATIC_FEE = 50000
|
FEERATE_FALLBACK_STATIC_FEE = 50000
|
||||||
FEERATE_DEFAULT_RELAY = 50000
|
FEERATE_DEFAULT_RELAY = 50000
|
||||||
FEERATE_STATIC_VALUES = [50000]
|
FEERATE_STATIC_VALUES = [50000,100000]
|
||||||
|
|
||||||
|
|
||||||
config = None
|
config = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue