Fee is a KNPair (#167)

KVPair is {[]byte,[]byte}
This commit is contained in:
Jae Kwon
2017-12-24 18:39:16 -08:00
committed by GitHub
parent aaaacba1cd
commit f390385baf
6 changed files with 147 additions and 199 deletions

View File

@ -44,23 +44,3 @@ type validatorPretty struct {
PubKey data.Bytes `json:"pub_key"`
Power int64 `json:"power"`
}
//------------------------------------------------------------------------------
// KVPairInt is a helper method to build KV pair with an integer value.
func KVPairInt(key string, val int64) *KVPair {
return &KVPair{
Key: key,
ValueInt: val,
ValueType: KVPair_INT,
}
}
// KVPairString is a helper method to build KV pair with a string value.
func KVPairString(key, val string) *KVPair {
return &KVPair{
Key: key,
ValueString: val,
ValueType: KVPair_STRING,
}
}