fix crash due to a missing env variable in irc.py and a typo fix (#112)
Thank you!
This commit is contained in:
parent
cd078be882
commit
fd19bddeb1
@ -97,7 +97,7 @@ class DB(util.LoggedClass):
|
|||||||
self.hist_db = self.db_class('hist', for_sync)
|
self.hist_db = self.db_class('hist', for_sync)
|
||||||
if self.utxo_db.is_new:
|
if self.utxo_db.is_new:
|
||||||
self.logger.info('created new database')
|
self.logger.info('created new database')
|
||||||
self.logger.info('creating metadata diretcory')
|
self.logger.info('creating metadata directory')
|
||||||
os.mkdir('meta')
|
os.mkdir('meta')
|
||||||
with util.open_file('COIN', create=True) as f:
|
with util.open_file('COIN', create=True) as f:
|
||||||
f.write('ElectrumX databases and metadata for {} {}'
|
f.write('ElectrumX databases and metadata for {} {}'
|
||||||
|
|||||||
@ -35,7 +35,7 @@ class IRC(LoggedClass):
|
|||||||
self.prefix = env.coin.IRC_PREFIX
|
self.prefix = env.coin.IRC_PREFIX
|
||||||
self.nick = '{}{}'.format(self.prefix,
|
self.nick = '{}{}'.format(self.prefix,
|
||||||
env.irc_nick if env.irc_nick else
|
env.irc_nick if env.irc_nick else
|
||||||
double_sha256(env.report_host.encode())
|
double_sha256(env.identity.host.encode())
|
||||||
[:5].hex())
|
[:5].hex())
|
||||||
self.peer_regexp = re.compile('({}[^!]*)!'.format(self.prefix))
|
self.peer_regexp = re.compile('({}[^!]*)!'.format(self.prefix))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user