OSDN Git Service

add api for vote num (#149)
[bytom/vapor.git] / api / api.go
index 30e7152..074e038 100644 (file)
@@ -25,9 +25,9 @@ import (
        "github.com/vapor/net/websocket"
        "github.com/vapor/netsync/peers"
        "github.com/vapor/p2p"
+       "github.com/vapor/proposal/blockproposer"
        "github.com/vapor/protocol"
        "github.com/vapor/wallet"
-       "github.com/vapor/proposal/blockproposer"
 )
 
 var (
@@ -245,6 +245,7 @@ func (a *API) buildHandler() {
 
                m.Handle("/list-balances", jsonHandler(a.listBalances))
                m.Handle("/list-unspent-outputs", jsonHandler(a.listUnspentOutputs))
+               m.Handle("/list-account-votes", jsonHandler(a.listAccountVotes))
 
                m.Handle("/decode-program", jsonHandler(a.decodeProgram))