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