New genesis.json

This commit is contained in:
Jae Kwon
2015-04-18 23:08:02 -07:00
parent fa669ae436
commit 5bdd73f4a4
4 changed files with 56 additions and 11 deletions

View File

@ -5,6 +5,7 @@ import (
. "github.com/tendermint/tendermint/common"
"bytes"
"fmt"
"testing"
)
@ -41,6 +42,15 @@ func TestCopy(t *testing.T) {
}
}
func TestProposerSelection(t *testing.T) {
vset := randValidatorSet(10)
for i := 0; i < 100; i++ {
val := vset.Proposer()
fmt.Printf("Proposer: %v\n", val)
vset.IncrementAccum(1)
}
}
func BenchmarkValidatorSetCopy(b *testing.B) {
b.StopTimer()
vset := NewValidatorSet([]*Validator{})
@ -51,7 +61,7 @@ func BenchmarkValidatorSetCopy(b *testing.B) {
PubKey: privAccount.PubKey.(account.PubKeyEd25519),
}
if !vset.Add(val) {
panic("Failde to add validator")
panic("Failed to add validator")
}
}
b.StartTimer()