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

fixes for multi-node testing with the test.system contract #1488

Merged

Conversation

wanderingbort
Copy link
Contributor

  • authentication keys were defaulting to the first producer key on a node if none was explicitly set however, the method of deriving this required that producer to be "active" creating a race condition for starting up a candidate producer node
  • get_scheduled_producer was not taking config::producer_repititions into account properly with its math, it is likely that we never had all of the producers working before
  • the ABI for test.system was not properly serializable for setprods

…t.system contract:

 * authentication keys were defaulting to the first producer key on a node if none was explicitly set however, the method of deriving this required that producer to be "active" creating a race condition for starting up a candidate producer node
 * `get_scheduled_producer` was not taking `config::producer_repititions` into account properly with its math, it is likely that we never had all of the producers working before
 * the ABI for `test.system` was not properly serializable for `setprods`
if(pp != nullptr && pp->get_state() == abstract_plugin::started)
return pp->first_producer_public_key();
return pp->first_producer_public_key();*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to me we should make peer-private-key required so that private_keys is never empty. I think you are fine to remove this code for now.

@wanderingbort wanderingbort merged commit 6ce958f into EOSIO:master Feb 27, 2018
@wanderingbort wanderingbort deleted the feature/fixes-for-multinode-testing branch February 27, 2018 19:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants