Skip to content

Commit

Permalink
修改tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snowlybetter committed Mar 26, 2019
1 parent c5358c1 commit 78fff73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions programs/eosio-launcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ struct testnet_def {
struct prodkey_def {
string producer_name;
public_key_type block_signing_key;
string url;
string location;
};

struct producer_set_def {
Expand Down Expand Up @@ -869,7 +871,7 @@ launcher_def::bind_nodes () {
if (is_bios) {
string prodname = "eosio";
node.producers.push_back(prodname);
producer_set.schedule.push_back({prodname,pubkey});
producer_set.schedule.push_back({prodname,pubkey,"xxx","0"});
}
else {
if (i < non_bios) {
Expand All @@ -881,7 +883,7 @@ launcher_def::bind_nodes () {
while (count--) {
const auto prodname = producer_names::producer_name(producer_number);
node.producers.push_back(prodname);
producer_set.schedule.push_back({prodname,pubkey});
producer_set.schedule.push_back({prodname,pubkey,"xxx","0"});
++producer_number;
}
}
Expand Down Expand Up @@ -1263,7 +1265,7 @@ launcher_def::write_bios_boot () {
continue;
}
brb << "cacmd " << p.producer_name
<< " " << string(p.block_signing_key) << " " << string(p.block_signing_key) << "\n";
<< " " << string(p.block_signing_key) << " " << string(p.block_signing_key) <<" "<< string("xxxx") << " "<< string("0") << "\n";
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions testnet.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ wcmd () {
}

cacmd () {
programs/cleos/cleos --wallet-url $wdurl --url http://$bioshost:$biosport system newaccount --transfer --stake-net "10000000.0000 SYS" --stake-cpu "10000000.0000 SYS" --buy-ram "10000000.0000 SYS" eosio $* >> $logfile 2>&1
ecmd system regproducer $1 $2
programs/cleos/cleos --wallet-url $wdurl --url http://$bioshost:$biosport system newaccount --transfer --stake-net "10000000.0000 SYS" --stake-cpu "10000000.0000 SYS" --buy-ram "10000000.0000 SYS" eosio $1 $2 $3 >> $logfile 2>&1
ecmd system regproducer $1 $2 $4 $5
ecmd system voteproducer prods $1 $1
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def bootstrap(totalNodes, prodCount, totalProducers, biosHost, biosPort, walletM
else:
setProdsStr += ','

setProdsStr += ' { "producer_name": "%s", "block_signing_key": "%s" }' % (keys["name"], keys["public"])
setProdsStr += ' { "producer_name": "%s", "block_signing_key": "%s","url":"xxxx","location":"0" }' % (keys["name"], keys["public"])
prodNames.append(keys["name"])
counts[keys["node"]] += 1

Expand Down

0 comments on commit 78fff73

Please sign in to comment.