feat: add extend cb to avoid unmarshal appState twice for sim test (#15305)
This commit is contained in:
@@ -177,6 +177,11 @@ type AppStateFn func(r *rand.Rand, accs []Account, config Config) (
|
||||
appState json.RawMessage, accounts []Account, chainId string, genesisTimestamp time.Time,
|
||||
)
|
||||
|
||||
// AppStateFnWithExtendedCb returns the app state json bytes and the genesis accounts
|
||||
type AppStateFnWithExtendedCb func(r *rand.Rand, accs []Account, config Config) (
|
||||
appState json.RawMessage, accounts []Account, chainId string, genesisTimestamp time.Time,
|
||||
)
|
||||
|
||||
// RandomAccountFn returns a slice of n random simulation accounts
|
||||
type RandomAccountFn func(r *rand.Rand, n int) []Account
|
||||
|
||||
|
||||
Reference in New Issue
Block a user