1
0

simplify directories: electrum_dir

This commit is contained in:
thomasv
2013-09-02 15:05:33 +02:00
parent 8774f1a193
commit 48efc62b2d
4 changed files with 19 additions and 17 deletions

View File

@@ -230,9 +230,7 @@ class BlockchainVerifier(threading.Thread):
return rev_hex(Hash(self.header_to_string(header).decode('hex')).encode('hex'))
def path(self):
wdir = self.config.get('blockchain_headers_path', user_dir())
if wdir and not os.path.exists( wdir ): os.mkdir(wdir)
return os.path.join( wdir, 'blockchain_headers')
return os.path.join( self.config.path, 'blockchain_headers')
def init_headers_file(self):
filename = self.path()
@@ -327,3 +325,5 @@ class BlockchainVerifier(threading.Thread):
new_bits = c + MM * i
return new_bits, new_target