From f34da4d5193fc54cfea739336632da650784e543 Mon Sep 17 00:00:00 2001 From: Lazar Date: Mon, 11 Nov 2024 17:06:03 +0100 Subject: [PATCH] fix race --- harness/manager.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/harness/manager.go b/harness/manager.go index 20e6a28..5d49a5b 100644 --- a/harness/manager.go +++ b/harness/manager.go @@ -78,6 +78,7 @@ type TestManager struct { babylonDir string benchConfig benchcfg.Config fundingRequests chan sdk.AccAddress + fundingAddress sdk.AccAddress } // StartManager creates a test manager @@ -206,6 +207,10 @@ func StartManager(ctx context.Context, outputsInWallet uint32, epochInterval uin if err != nil { return nil, err } + + fundingAccount := babylonClientNode0.MustGetAddr() + fundingAddress := sdk.MustAccAddressFromBech32(fundingAccount) + return &TestManager{ TestRpcClient: testRpcClient, BabylonClientNode0: babylonClientNode0, @@ -217,6 +222,7 @@ func StartManager(ctx context.Context, outputsInWallet uint32, epochInterval uin babylonDir: babylonDir, benchConfig: runCfg, fundingRequests: make(chan sdk.AccAddress, 100), + fundingAddress: fundingAddress, }, nil }