Ai
1 Star 0 Fork 0

tomcard/gotron-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
values.go 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
zzq 提交于 2021-04-02 17:07 +08:00 . first commit
package common
import (
"errors"
"os"
)
const (
// DefaultConfigAccountAliasesDirName fro accounts
DefaultConfigAccountAliasesDirName = "account-keys"
// DefaultPassphrase for accounts
DefaultPassphrase = ""
// Secp256k1PrivateKeyBytesLength privete key
Secp256k1PrivateKeyBytesLength = 32
// AmountDecimalPoint TRX decimal point
AmountDecimalPoint = 6
)
var (
// DefaultConfigDirName for wallets
DefaultConfigDirName = ".tronctl"
DebugGRPC = false
DebugTransaction = false
ErrNotAbsPath = errors.New("keypath is not absolute path")
ErrBadKeyLength = errors.New("Invalid private key (wrong length)")
ErrFoundNoPass = errors.New("found no passphrase file")
)
func init() {
if _, enabled := os.LookupEnv("TRONCTL_GRPC_DEBUG"); enabled != false {
DebugGRPC = true
}
if _, enabled := os.LookupEnv("TRONCTL_TX_DEBUG"); enabled != false {
DebugTransaction = true
}
if _, enabled := os.LookupEnv("TRONCTL_ALL_DEBUG"); enabled != false {
EnableAllVerbose()
}
}
// EnableAllVerbose sets debug vars to true
func EnableAllVerbose() {
DebugGRPC = true
DebugTransaction = true
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kand_admin/gotron-sdk.git
git@gitee.com:kand_admin/gotron-sdk.git
kand_admin
gotron-sdk
gotron-sdk
044d4103d5c5

搜索帮助