Commit 5f16a4b5 authored by shajiaiming's avatar shajiaiming

doge fee

parent 2a4c106f
......@@ -26,7 +26,7 @@ type Data struct {
func GetTransactionGas(name string) (map[string]interface{}, error) {
data := make(map[string]interface{})
items_fee := []string{"BTC", "BCH", "LTC", "ZEC", "ZCASH", "DCR", "NEO", "TRX", "ATOM", "BTY", "ETC", "ETH", "HT", "ETHTOKEN", "BNB"}
items_fee := []string{"BTC", "BCH", "LTC", "ZEC", "ZCASH", "DCR", "NEO", "TRX", "ATOM", "BTY", "ETC", "ETH", "HT", "ETHTOKEN", "BNB", "DOGE"}
_, found_fee := util.Contains(items_fee, strings.ToUpper(name))
......@@ -216,6 +216,10 @@ func TokenView() error {
gredis.HashSet("DCR_GAS", "txFee", val.TxFee, 3)
gredis.HashSet("DCR_GAS", "time", val.Time, 3)
}
if "DOGE" == strings.ToUpper(val.Network) {
gredis.HashSet("DOGE_GAS", "txFee", val.TxFee, 3)
gredis.HashSet("DOGE_GAS", "time", val.Time, 3)
}
if "ETC" == strings.ToUpper(val.Network) {
gredis.HashSet("ETC_GAS", "gasPrice", val.GasPrice, 3)
gredis.HashSet("ETC_GAS", "time", val.Time, 3)
......
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