Skip to content

Commit 038befa

Browse files
authored
fix loadtest param, specific precompile should pass useSelectedAddress=true (#431)
1 parent d9bd47b commit 038befa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/loadtest/loadtest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,9 @@ func mainLoop(ctx context.Context, c *ethclient.Client, rpc *ethrpc.Client) erro
709709
case loadTestModeIncrement:
710710
startReq, endReq, tErr = loadTestIncrement(ctx, c, myNonceValue, ltContract)
711711
case loadTestModeRandomPrecompiledContract:
712-
startReq, endReq, tErr = loadTestCallPrecompiledContract(ctx, c, myNonceValue, ltContract, true)
713-
case loadTestModeSpecificPrecompiledContract:
714712
startReq, endReq, tErr = loadTestCallPrecompiledContract(ctx, c, myNonceValue, ltContract, false)
713+
case loadTestModeSpecificPrecompiledContract:
714+
startReq, endReq, tErr = loadTestCallPrecompiledContract(ctx, c, myNonceValue, ltContract, true)
715715
case loadTestModeRecall:
716716
startReq, endReq, tErr = loadTestRecall(ctx, c, myNonceValue, recallTransactions[int(currentNonce)%len(recallTransactions)])
717717
case loadTestModeRPC:

0 commit comments

Comments
 (0)