Add benchmark for abci app
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user