Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 6ce1f4c

Browse files
authored
Merge pull request #568 from HowJMay/set_buffer_list_name
feat(config): Set buffer list name with CLI
2 parents 9e73866 + 137469f commit 6ce1f4c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

accelerator/cli_info.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ typedef enum ta_cli_arg_value_e {
5252
PROXY_API,
5353
HEALTH_TRACK_PERIOD,
5454
NO_GTTA,
55+
BUFFER_LIST,
56+
DONE_LIST,
5557

5658
/** LOGGER */
5759
QUIET,
@@ -86,6 +88,8 @@ static struct ta_cli_argument_s {
8688
{"health_track_period", no_argument, NULL, HEALTH_TRACK_PERIOD,
8789
"The period for checking IRI host connection status"},
8890
{"no-gtta", no_argument, NULL, NO_GTTA, "Disable getTransactionToConfirm (gTTA) when sending transacation"},
91+
{"buffer_list", required_argument, NULL, BUFFER_LIST, "Set the value of `buffer_list_name`"},
92+
{"done_list", required_argument, NULL, DONE_LIST, "Set the value of `done_list_name`"},
8993
{"quiet", no_argument, NULL, QUIET, "Disable logger"},
9094
{NULL, 0, NULL, 0, NULL}};
9195

accelerator/config.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ status_t cli_core_set(ta_core_t* const core, int key, char* const value) {
192192
case NO_GTTA:
193193
ta_conf->gtta = false;
194194
break;
195+
case BUFFER_LIST:
196+
cache->buffer_list_name = value;
197+
break;
198+
case DONE_LIST:
199+
cache->done_list_name = value;
200+
break;
195201

196202
// File configuration
197203
case CONF_CLI: {

0 commit comments

Comments
 (0)