Skip to content

Commit

Permalink
add request count and attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-jentzsch committed Feb 3, 2020
1 parent 8455629 commit ed33f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/_in3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ args=(
'-q[quiet no debug output]'
'-ri[read response from stdin]'
'-ro[write raw response to stdout]'
'-a[max number of attempts before giving up (default 5)]:attempts:(1 2 3 4 5 6 7 8 9)'
'-rc[number of request per try (default 1)]:requestCount:(1 2 3 4 5 6 7 8 9)'

':method:{_describe command subcmds}'
':arg1:{_describe command sig_in3 -- sig_erc20 -- sig_ms}'
Expand Down
2 changes: 1 addition & 1 deletion src/core/client/client_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static in3_ret_t in3_client_init(in3_t* c, chain_id_t chain_id) {
c->chain_id = chain_id ? chain_id : ETH_CHAIN_ID_MAINNET; // mainnet
c->key = NULL;
c->finality = 0;
c->max_attempts = 3;
c->max_attempts = 5;
c->max_block_cache = 0;
c->max_code_cache = 0;
c->max_verified_hashes = 5;
Expand Down

0 comments on commit ed33f4b

Please sign in to comment.