OSDN Git Service

Merge branch 'dev' into backup
[bytom/bytom-spv.git] / api / api.go
index 14191a5..d35481e 100644 (file)
@@ -188,8 +188,6 @@ func (a *API) buildHandler() {
                m.Handle("/sign-transaction", jsonHandler(a.pseudohsmSignTemplates))
                m.Handle("/submit-transaction", jsonHandler(a.submit))
                m.Handle("/estimate-transaction-gas", jsonHandler(a.estimateTxGas))
-               // TODO remove this api, separate sign and submit process
-               m.Handle("/sign-submit-transaction", jsonHandler(a.signSubmit))
 
                m.Handle("/get-transaction", jsonHandler(a.getTransaction))
                m.Handle("/list-transactions", jsonHandler(a.listTransactions))
@@ -222,7 +220,7 @@ func (a *API) buildHandler() {
        m.Handle("/delete-transaction-feed", jsonHandler(a.deleteTxFeed))
        m.Handle("/list-transaction-feeds", jsonHandler(a.listTxFeeds))
 
-       m.Handle("/block-hash", jsonHandler(a.getBestBlockHash))
+       m.Handle("/get-block-hash", jsonHandler(a.getBestBlockHash))
        m.Handle("/get-block-header-by-hash", jsonHandler(a.getBlockHeaderByHash))
        m.Handle("/get-block-header-by-height", jsonHandler(a.getBlockHeaderByHeight))
        m.Handle("/get-block", jsonHandler(a.getBlock))