mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 18:21:38 +00:00
New genesis.json
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user