remove a couple eth-rpc methods that were used by the outdated logging, and no need to update pr save

This commit is contained in:
Rob Culliton 2018-05-05 09:38:03 -04:00
parent 1b4f0c7301
commit 66b70423d8
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
2 changed files with 1 additions and 17 deletions

View File

@ -10,9 +10,7 @@
(let [state (case (:state pull-request) (let [state (case (:state pull-request)
:opened 0 :opened 0
:merged 1 :merged 1
:closed 2 :closed 2)]
;; allow for case of proper state already set
(:state pull-request))]
(log/debug "save pr" (assoc pull-request :state state)) (log/debug "save pr" (assoc pull-request :state state))
(jdbc/with-db-connection [con-db *db*] (jdbc/with-db-connection [con-db *db*]

View File

@ -184,20 +184,6 @@
(eth-rpc {:method "eth_getTransactionReceipt" (eth-rpc {:method "eth_getTransactionReceipt"
:params [hash]})) :params [hash]}))
(defn get-transaction-by-hash
[hash]
(eth-rpc {:method "eth_getTransactionByHash"
:params [hash]}))
(defn get-logs
[from-block address topics]
(eth-rpc {:method "eth_getLogs"
:params [{:address address
:topics topics
;; a nil fromBlock will default to the current block
;; which is not useful for the current state of logging
:fromBlock from-block}]}))
(defn format-call-params (defn format-call-params
[method-id & params] [method-id & params]
(let [params (join (map format-param params))] (let [params (join (map format-param params))]