You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("pre-funding accounts with call only mode doesn't make sense")
215
+
}
216
+
if*ltp.WaitForReceipt {
217
+
returnfmt.Errorf("waiting for receipts doesn't make sense with call only mode")
218
+
}
219
+
}
220
+
if*ltp.GasPriceMultiplier==0 {
221
+
returnfmt.Errorf("gas price multiplier should be non-zero")
222
+
}
223
+
207
224
returnnil
208
225
}
209
226
@@ -226,6 +243,7 @@ func initFlags() {
226
243
ltp.RandomRecipients=LoadtestCmd.PersistentFlags().Bool("random-recipients", false, "When doing a transfer test, should we send to random addresses rather than DEADBEEFx5")
227
244
ltp.EthCallOnly=LoadtestCmd.PersistentFlags().Bool("eth-call-only", false, "When using this mode, rather than sending a transaction, we'll just call. This mode is incompatible with adaptive rate limiting, summarization, and a few other features.")
228
245
ltp.EthCallOnlyLatestBlock=LoadtestCmd.PersistentFlags().Bool("eth-call-only-latest", false, "When using call only mode with recall, should we execute on the latest block or on the original block")
246
+
ltp.OutputRawTxOnly=LoadtestCmd.PersistentFlags().Bool("output-raw-tx-only", false, "When using this mode, rather than sending a transaction, we'll just output the raw signed transaction hex. Works with most load test modes except RPC and UniswapV3.")
229
247
ltp.EthAmountInWei=LoadtestCmd.PersistentFlags().Uint64("eth-amount-in-wei", 0, "The amount of ether in wei to send on every transaction")
230
248
ltp.RateLimit=LoadtestCmd.PersistentFlags().Float64("rate-limit", 4, "An overall limit to the number of requests per second. Give a number less than zero to remove this limit all together")
231
249
ltp.AdaptiveRateLimit=LoadtestCmd.PersistentFlags().Bool("adaptive-rate-limit", false, "Enable AIMD-style congestion control to automatically adjust request rate")
@@ -261,7 +279,6 @@ func initFlags() {
261
279
b, blob - Send blob transactions
262
280
cc, contract-call - Make contract calls
263
281
d, deploy - Deploy contracts
264
-
i, inscription - Send inscription transactions
265
282
inc, increment - Increment a counter
266
283
r, random - Random modes (does not include the following modes: blob, call, inscription, recall, rpc, uniswapv3)
ltp.RecallLength=LoadtestCmd.Flags().Uint64("recall-blocks", 50, "The number of blocks that we'll attempt to fetch for recall")
277
294
ltp.ContractAddress=LoadtestCmd.Flags().String("contract-address", "", "The address of the contract that will be used in --mode contract-call. This must be paired up with --mode contract-call and --calldata")
278
295
ltp.ContractCallData=LoadtestCmd.Flags().String("calldata", "", "The hex encoded calldata passed in. The format is function signature + arguments encoded together. This must be paired up with --mode contract-call and --contract-address")
279
-
ltp.ContractCallFunctionSignature=LoadtestCmd.Flags().String("function-signature", "", "The contract's function signature that will be called. The format is '<function name>(<types...>)'. This must be paired up with '--mode contract-call' and '--contract-address'. If the function requires parameters you can pass them with '--function-arg <value>'.")
280
-
ltp.ContractCallFunctionArgs=LoadtestCmd.Flags().StringSlice("function-arg", []string{}, `The arguments that will be passed to a contract function call. This must be paired up with "--mode contract-call" and "--contract-address". Args can be passed multiple times: "--function-arg 'test' --function-arg 999" or comma separated values "--function-arg "test",9". The ordering of the arguments must match the ordering of the function parameters.`)
281
296
ltp.ContractCallPayable=LoadtestCmd.Flags().Bool("contract-call-payable", false, "Use this flag if the function is payable, the value amount passed will be from --eth-amount-in-wei. This must be paired up with --mode contract-call and --contract-address")
282
-
ltp.InscriptionContent=LoadtestCmd.Flags().String("inscription-content", `data:,{"p":"erc-20","op":"mint","tick":"TEST","amt":"1"}`, "The inscription content that will be encoded as calldata. This must be paired up with --mode inscription")
283
297
ltp.Proxy=LoadtestCmd.Flags().String("proxy", "", "Use the proxy specified")
284
298
ltp.WaitForReceipt=LoadtestCmd.Flags().Bool("wait-for-receipt", false, "If set to true, the load test will wait for the transaction receipt to be mined. If set to false, the load test will not wait for the transaction receipt and will just send the transaction.")
285
299
ltp.ReceiptRetryMax=LoadtestCmd.Flags().Uint("receipt-retry-max", 30, "Maximum number of attempts to poll for transaction receipt when --wait-for-receipt is enabled.")
0 commit comments