cosmos-sdk/examples/democoin/x/simplestake/types.go

16 lines
227 B
Go

package simplestake
import "github.com/tendermint/tendermint/crypto"
type bondInfo struct {
PubKey crypto.PubKey
Power int64
}
func (bi bondInfo) isEmpty() bool {
if bi == (bondInfo{}) {
return true
}
return false
}