backporting fee per name env var

This commit is contained in:
Lex Berezhny 2021-12-17 14:09:34 -05:00
parent 279a365cb1
commit f5cd79391f
2 changed files with 4 additions and 1 deletions

View file

@ -1,2 +1,2 @@
__version__ = "0.101.1" __version__ = "0.101.2"
version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name

View file

@ -191,6 +191,9 @@ class WalletManager:
'data_path': config.wallet_dir, 'data_path': config.wallet_dir,
'tx_cache_size': config.transaction_cache_size 'tx_cache_size': config.transaction_cache_size
} }
if 'LBRY_FEE_PER_NAME_CHAR' in os.environ:
ledger_config['fee_per_name_char'] = int(os.environ.get('LBRY_FEE_PER_NAME_CHAR'))
wallets_directory = os.path.join(config.wallet_dir, 'wallets') wallets_directory = os.path.join(config.wallet_dir, 'wallets')
if not os.path.exists(wallets_directory): if not os.path.exists(wallets_directory):