Skip to content

Commit b7a3400

Browse files
authored
Merge pull request #6219 from brianjohnson5972/6217-trusted-prod-config-file2
Trusted producer should be configured via cfg and cli
2 parents 879894c + 6049d1f commit b7a3400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/chain_plugin/chain_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
249249
"In \"light\" mode all incoming blocks headers will be fully validated; transactions in those validated blocks will be trusted \n")
250250
("disable-ram-billing-notify-checks", bpo::bool_switch()->default_value(false),
251251
"Disable the check which subjectively fails a transaction if a contract bills more RAM to another account within the context of a notification handler (i.e. when the receiver is not the code of the action).")
252+
("trusted-producer", bpo::value<vector<string>>()->composing(), "Indicate a producer whose blocks headers signed by it will be fully validated, but transactions in those validated blocks will be trusted.")
252253
;
253254

254255
// TODO: rate limiting
@@ -286,7 +287,6 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
286287
"replace reversible block database with blocks imported from specified file and then exit")
287288
("export-reversible-blocks", bpo::value<bfs::path>(),
288289
"export reversible block database in portable format into specified file and then exit")
289-
("trusted-producer", bpo::value<vector<string>>()->composing(), "Indicate a producer whose blocks headers signed by it will be fully validated, but transactions in those validated blocks will be trusted.")
290290
("snapshot", bpo::value<bfs::path>(), "File to read Snapshot State from")
291291
;
292292

0 commit comments

Comments
 (0)