feat: add extend cb to avoid unmarshal appState twice for sim test (#15305)

This commit is contained in:
mmsqe
2023-03-08 23:51:26 +00:00
committed by GitHub
parent fafe04bef5
commit b75d56985c
3 changed files with 25 additions and 0 deletions
+5
View File
@@ -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