git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1117741
)
by default, use user dir
author
ThomasV
<thomasv@gitorious>
Fri, 26 Oct 2012 15:44:07 +0000 (17:44 +0200)
committer
ThomasV
<thomasv@gitorious>
Fri, 26 Oct 2012 15:44:07 +0000 (17:44 +0200)
lib/verifier.py
patch
|
blob
|
history
diff --git
a/lib/verifier.py
b/lib/verifier.py
index
012424f
..
ad926d4
100644
(file)
--- a/
lib/verifier.py
+++ b/
lib/verifier.py
@@
-251,9
+251,8
@@
class WalletVerifier(threading.Thread):
return hash_encode(h)
def path(self):
- wdir = user_dir()
- if not os.path.exists( wdir ):
- wdir = os.path.dirname(self.config.path)
+ wdir = self.config.get('blockchain_headers_path', user_dir())
+ if not os.path.exists( wdir ): os.mkdir(wdir)
return os.path.join( wdir, 'blockchain_headers')
def save_chunk(self, index, chunk):