git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b8cf75c
)
fix sql: do not call new_id
author
ThomasV
<thomasv@gitorious>
Tue, 19 Jun 2012 06:04:46 +0000 (10:04 +0400)
committer
ThomasV
<thomasv@gitorious>
Tue, 19 Jun 2012 06:04:46 +0000 (10:04 +0400)
backends/abe/__init__.py
patch
|
blob
|
history
diff --git
a/backends/abe/__init__.py
b/backends/abe/__init__.py
index
6713329
..
1971a6c
100644
(file)
--- a/
backends/abe/__init__.py
+++ b/
backends/abe/__init__.py
@@
-87,6
+87,7
@@
class AbeStore(Datastore_class):
ret = self.selectall(sql,params)
except:
error = True
+ traceback.print_exc(file=sys.stdout)
finally:
if lock: self.dblock.release()
@@
-267,7
+268,8
@@
class AbeStore(Datastore_class):
rows += self.get_address_out_rows_memorypool( dbhash )
address_has_mempool = False
- current_id = self.new_id("tx")
+ current_id = self.safe_sql("""SELECT last_value FROM tx_seq""")
+ current_id = current_id[0][0]
for row in rows:
is_in, tx_hash, tx_id, pos, value = row