RunAction* directly on ConsensusState.

This commit is contained in:
Jae Kwon
2014-10-21 01:18:46 -07:00
parent f5d0794756
commit 5ffe406f16
6 changed files with 235 additions and 148 deletions
+4
View File
@@ -127,6 +127,10 @@ func (vset *ValidatorSet) Iterate(fn func(val *Validator) bool) {
})
}
func (vset *ValidatorSet) String() string {
return vset.StringWithIndent("")
}
func (vset *ValidatorSet) StringWithIndent(indent string) string {
valStrings := []string{}
vset.Iterate(func(val *Validator) bool {