From 835315dcaa6745bc28a258131205adfadbf7a691 Mon Sep 17 00:00:00 2001 From: ValarDragon Date: Wed, 31 Oct 2018 10:11:41 -0700 Subject: [PATCH] move typedef --- x/mock/simulation/random_simulate_blocks.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/x/mock/simulation/random_simulate_blocks.go b/x/mock/simulation/random_simulate_blocks.go index ba477864f2..098c1647ab 100644 --- a/x/mock/simulation/random_simulate_blocks.go +++ b/x/mock/simulation/random_simulate_blocks.go @@ -22,12 +22,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -type blockSimFn func( - r *rand.Rand, - app *baseapp.BaseApp, ctx sdk.Context, - accounts []Account, header abci.Header, logWriter func(string), -) (opCount int) - // Simulate tests application by sending random messages. func Simulate(t *testing.T, app *baseapp.BaseApp, appStateFn func(r *rand.Rand, accs []Account) json.RawMessage, @@ -202,6 +196,11 @@ func SimulateFromSeed(tb testing.TB, app *baseapp.BaseApp, return nil } +type blockSimFn func( + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, + accounts []Account, header abci.Header, logWriter func(string), +) (opCount int) + // Returns a function to simulate blocks. Written like this to avoid constant parameters being passed everytime, to minimize // memory overhead func createBlockSimulator(testingMode bool, tb testing.TB, t *testing.T,