cosmos-sdk/x/simplestake/types.go

16 lines
226 B
Go
Raw Normal View History

2018-03-28 21:40:06 -07:00
package simplestake
2018-03-21 15:21:46 -07:00
import crypto "github.com/tendermint/go-crypto"
2018-03-21 15:21:46 -07:00
type bondInfo struct {
PubKey crypto.PubKey
Power int64
}
2018-03-21 15:21:46 -07:00
func (bi bondInfo) isEmpty() bool {
if bi == (bondInfo{}) {
return true
}
2018-03-21 15:21:46 -07:00
return false
}