git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f331a62
)
Fix error (chain_id == None) on some Abe installation
author
slush
<info@bitcoin.cz>
Sat, 4 Aug 2012 23:00:48 +0000 (
01:00
+0200)
committer
slush
<info@bitcoin.cz>
Sat, 4 Aug 2012 23:00:48 +0000 (
01:00
+0200)
backends/abe/__init__.py
patch
|
blob
|
history
diff --git
a/backends/abe/__init__.py
b/backends/abe/__init__.py
index
40e1927
..
a91402c
100644
(file)
--- a/
backends/abe/__init__.py
+++ b/
backends/abe/__init__.py
@@
-35,7
+35,8
@@
class AbeStore(Datastore_class):
Datastore_class.__init__(self,args)
- self.chain_id = self.datadirs[0]["chain_id"];
+ # Use 1 (Bitcoin) if chain_id is not sent
+ self.chain_id = self.datadirs[0]["chain_id"] or 1
print 'Coin chain_id = %d' % self.chain_id
self.sql_limit = int( config.get('database','limit') )