Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add -skip-signature to launcher #271
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 5, 2017
1 parent a54725d commit eef0496
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ For testing purposes we will run 2 local production nodes talking to each other.
```commandline
cd ~/eos/build
cp ../genesis.json ./
./programs/launcher/launcher -p2 -s testnet.json -l local
./programs/launcher/launcher -p2 -s testnet.json --skip-signature -l local
```

This command will generate 2 data folder for each instance of the node: `tn_data_0` and `tn_data_1`, as well as `testnet.json` file for the testnet configuration.
Expand Down
4 changes: 2 additions & 2 deletions programs/launcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ launcher_def::set_options (bpo::options_description &cli) {
("shape,s",bpo::value<string>()->default_value("ring"),"network topology, use \"ring\" \"star\" \"mesh\" or give a filename for custom")
("genesis,g",bpo::value<bf::path>()->default_value("./genesis.json"),"set the path to genesis.json")
("output,o",bpo::value<bf::path>(),"save a copy of the generated topology in this file")
("skip-signature,s", bpo::value<bool>(), "EOSD does not require transaction signatures.");
("skip-signature", bpo::bool_switch()->default_value(false), "EOSD does not require transaction signatures.");
}

void
Expand All @@ -252,7 +252,7 @@ launcher_def::initialize (const variables_map &vmap) {
if (vmap.count("output"))
output = vmap["output"].as<bf::path>();
if (vmap.count("skip-signature"))
skip_transaction_signatures = true;
skip_transaction_signatures = vmap["skip-signature"].as<bool>();

producers = 21;
data_dir_base = "tn_data_";
Expand Down
4 changes: 3 additions & 1 deletion testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ Testnet launcher options:
set the path to genesis.json
-o [ --output ] arg save a copy of the generated topology
in this file
-i [ --timestamp ] arg set the timestamp for the first block.
--skip-signature EOSD does not require transaction
signatures.
-i [ --timestamp ] arg set the timestamp for the first block.
Use "now" to indicate the current time
-l [ --launch ] arg select a subset of nodes to launch.
Currently may be "all", "none", or
Expand Down

0 comments on commit eef0496

Please sign in to comment.