mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-04 07:07:13 +00:00
Documented Block, some renames
This commit is contained in:
@@ -59,6 +59,7 @@ func TestGenesisSaveLoad(t *testing.T) {
|
||||
Height: 1,
|
||||
Time: s0.LastBlockTime.Add(time.Minute),
|
||||
Fees: 0,
|
||||
NumTxs: 0,
|
||||
LastBlockHash: s0.LastBlockHash,
|
||||
LastBlockParts: s0.LastBlockParts,
|
||||
StateHash: nil,
|
||||
|
||||
@@ -197,10 +197,10 @@ func (valSet *ValidatorSet) Iterate(fn func(index uint, val *Validator) bool) {
|
||||
}
|
||||
|
||||
func (valSet *ValidatorSet) String() string {
|
||||
return valSet.StringWithIndent("")
|
||||
return valSet.StringIndented("")
|
||||
}
|
||||
|
||||
func (valSet *ValidatorSet) StringWithIndent(indent string) string {
|
||||
func (valSet *ValidatorSet) StringIndented(indent string) string {
|
||||
valStrings := []string{}
|
||||
valSet.Iterate(func(index uint, val *Validator) bool {
|
||||
valStrings = append(valStrings, val.String())
|
||||
|
||||
Reference in New Issue
Block a user