From: ThomasV Date: Tue, 19 Jun 2012 06:04:46 +0000 (+0400) Subject: fix sql: do not call new_id X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=74a20cd58fddb7c95835e8b05365afb6aa64a2d5 fix sql: do not call new_id --- diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 6713329..1971a6c 100644 --- 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