[go: up one dir, main page]

test: use bootstrap_account type when possible when creating a new context

The function Account.generation_accounts used to return a list of tuples that must be used in block.genesis. The function took a balance and bootstrap_delegation as optional parameters but did nothing with it. So instead I split that function in two generate_accounts that creates accounts and make_bootstrap_accounts.

I also remove some dead code and used the record Default_parameters.bootstrap_account when it make sense instead of a tuple.

Context

Manually testing the MR

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Sylvain R.

Merge request reports

Loading