Skip to content

Commit 8cc52d9

Browse files
committed
GH-1093 Reduced default trx-expiration to 30 minutes and max to 3599 seconds. 60 minutes is too close to the limit and can sometimes fail.
1 parent f9f0529 commit 8cc52d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/trx_generator/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int argc, char** argv) {
2828
et::accounts_config accts_config;
2929
et::trx_tps_tester_config tester_config;
3030

31-
const int64_t trx_expiration_max = 3600;
31+
const int64_t trx_expiration_max = 3599;
3232
const uint16_t generator_id_max = 960;
3333
bpo::variables_map vmap;
3434
bpo::options_description cli("Transaction Generator command line options.");
@@ -50,7 +50,7 @@ int main(int argc, char** argv) {
5050
("contract-owner-account", bpo::value<std::string>(&contract_owner_account_in), "Account name of the contract account for the transaction actions")
5151
("accounts", bpo::value<std::string>(&accts), "comma-separated list of accounts that will be used for transfers. Minimum required accounts: 2.")
5252
("priv-keys", bpo::value<std::string>(&p_keys), "comma-separated list of private keys in same order of accounts list that will be used to sign transactions. Minimum required: 2.")
53-
("trx-expiration", bpo::value<int64_t>(&trx_expr)->default_value(3600), "transaction expiration time in seconds. Defaults to 3,600. Maximum allowed: 3,600")
53+
("trx-expiration", bpo::value<int64_t>(&trx_expr)->default_value(1800), "transaction expiration time in seconds. Defaults to 1,800. Maximum allowed: 3,599")
5454
("trx-gen-duration", bpo::value<uint32_t>(&tester_config._gen_duration_seconds)->default_value(60), "Transaction generation duration (seconds). Defaults to 60 seconds.")
5555
("target-tps", bpo::value<uint32_t>(&tester_config._target_tps)->default_value(1), "Target transactions per second to generate/send. Defaults to 1 transaction per second.")
5656
("last-irreversible-block-id", bpo::value<std::string>(&lib_id_str), "Current last-irreversible-block-id (LIB ID) to use for transactions.")

0 commit comments

Comments
 (0)