Commit 25f5267f authored by 李伟@五瓣科技's avatar 李伟@五瓣科技

add web static page dir

parent 8236fa25
......@@ -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", "./", "send tx to the chain with the private key")
rootCmd.PersistentFlags().StringVar(&webStaticDir, "webStaticDir", "./static/", "front end page")
}
var rootCmd = &cobra.Command{
......@@ -45,6 +45,8 @@ var rootCmd = &cobra.Command{
// }
//}()
fmt.Printf("webStaticDir: %s \n", webStaticDir)
cfg := multisend.Config{
Rate: rate,
Count: count,
......@@ -53,6 +55,7 @@ var rootCmd = &cobra.Command{
SendPeriod: sendPeriod,
ClientFactory: "ethclient",
SendTxPrivateKey: sendTxPrivateKey,
WebStaticDir: webStaticDir,
}
transactor, err := multisend.NewTransactor(websocketAddr, &cfg)
......
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