Merge pull request #431 from status-im/develop

Additional logging and tx hash constraint
This commit is contained in:
Vitaliy Vlasov 2018-04-19 19:20:17 +03:00 committed by GitHub
commit e04757d1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -0,0 +1 @@
ALTER TABLE issues DROP CONSTRAINT transaction_hash_uniq;

View File

@ -0,0 +1 @@
ALTER TABLE issues ADD CONSTRAINT transaction_hash_uniq UNIQUE (transaction_hash);

View File

@ -145,12 +145,7 @@
(try (try
(json/read-str s :key-fn keyword) (json/read-str s :key-fn keyword)
(catch Exception ex (catch Exception ex
(do (log/error "Exception when parsing json string:" (log/error ex "Exception when parsing json string:" s)))))
s
"message:"
ex)
nil)))))
(def req-id-tracker (def req-id-tracker
;; HACK to ensure previous random-number approach doesn't lead to ;; HACK to ensure previous random-number approach doesn't lead to