Add benchmark for abci app

This commit is contained in:
Ethan Frey
2017-07-25 10:06:07 -04:00
parent fb4266249e
commit 9cf0f257c0
2 changed files with 207 additions and 1 deletions
+8 -1
View File
@@ -11,7 +11,8 @@ import (
// AccountWithKey is a helper for tests, that includes and account
// along with the private key to access it.
type AccountWithKey struct {
Key crypto.PrivKey
Key crypto.PrivKey
Sequence uint32
Account
}
@@ -34,6 +35,12 @@ func (a *AccountWithKey) Actor() basecoin.Actor {
return auth.SigPerm(a.Key.PubKey().Address())
}
// NextSequence returns the next sequence to sign with
func (a *AccountWithKey) NextSequence() uint32 {
a.Sequence++
return a.Sequence
}
// MakeOption returns a string to use with SetOption to initialize this account
//
// This is intended for use in test cases