Commit 523c9fa8 authored by gshx's avatar gshx

Merge branch 'heco-testnet' of https://code.wuban.net.cn/liwei/multisend into heco-testnet

parents 40e451b7 883f7be9
......@@ -32,7 +32,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&redisAddr, "redisAddr", "127.0.0.1:6379", "commit the original txs to the redis queue")
rootCmd.PersistentFlags().StringVar(&redisPasswd, "redisPasswd", "redis20220217", "redis password")
rootCmd.PersistentFlags().StringVar(&sendTxPrivateKey, "sendTxPrivateKey", "a1994419e9b06a7b27e8d094840ae26a6b7806633bb8be55a1a835f1620d8cec", "send tx to the chain with the private key")
rootCmd.PersistentFlags().StringVar(&webStaticDir, "webStaticDir", "./static/", "front end page")
//rootCmd.PersistentFlags().StringVar(&webStaticDir, "webStaticDir", "./static/", "front end page")
}
var rootCmd = &cobra.Command{
......
......@@ -306,13 +306,13 @@ func (web *WebServicer) GetTxsList(w http.ResponseWriter, r *http.Request) {
func (web *WebServicer) WebService(config Config) error {
r := mux.NewRouter()
// Routes consist of a path and a handler function.
r.HandleFunc("/param", web.ParamHandler)
r.HandleFunc("/sender/param", web.ParamHandler)
//r.HandleFunc("/faucet/{addr}", web.FaucetHandler)
r.HandleFunc("/process/{uuid}", web.ProcessHandler)
r.HandleFunc("/tree/{uuid}", web.GetTreeHandler)
r.HandleFunc("/txslist/{hash}", web.GetTxsList)
r.HandleFunc("/txs", web.TxsHandler).Methods("POST")
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(config.WebStaticDir))))
r.HandleFunc("/sender/process/{uuid}", web.ProcessHandler)
r.HandleFunc("/sender/tree/{uuid}", web.GetTreeHandler)
r.HandleFunc("/sender/txslist/{hash}", web.GetTxsList)
r.HandleFunc("/sender/txs", web.TxsHandler).Methods("POST")
//r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(config.WebStaticDir))))
clientFactory, exists := clientFactories["ethclient"]
if !exists {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment