Commit 3f35c79d authored by linj's avatar linj Committed by vipwzw

rename var id to idPrefix

parent 38e84de0
......@@ -12,13 +12,13 @@ import (
)
var (
id = "mavl-" + pty.UnfreezeX + "-"
idPrefix = "mavl-" + pty.UnfreezeX + "-"
)
func unfreezeID(txHash []byte) []byte {
return []byte(fmt.Sprintf("%s%s", id, hex.EncodeToString(txHash)))
return []byte(fmt.Sprintf("%s%s", idPrefix, hex.EncodeToString(txHash)))
}
func unfreezeIDFromHex(txHash string) string {
return fmt.Sprintf("%s%s", id, txHash)
return fmt.Sprintf("%s%s", idPrefix, txHash)
}
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