Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no way to test genesis stakes without putting bogus stakes in genesis_accounts.rs #7083

Closed
danpaul000 opened this issue Nov 21, 2019 · 3 comments
Assignees

Comments

@danpaul000
Copy link
Contributor

danpaul000 commented Nov 21, 2019

Problem

We want to test stake accounts in the SLP1 configuration using a genesis_accounts.rs containing only real accounts, for which we don't possess private keys. In SLP1, creating accounts is disabled, so we can't write those tests.

Proposed Solution

Create a command line tool that can create a file defining one or more staking accountss for which we have the private keys. This file(s) can be consumed by solana-genesis to be included as staking accounts in genesis in a similar manner as we consume --primordial-accounts-file for TdS participants

Blocks

#6194

@danpaul000 danpaul000 added this to the Sultans v0.21.0 milestone Nov 21, 2019
@danpaul000 danpaul000 self-assigned this Nov 21, 2019
@danpaul000
Copy link
Contributor Author

cc: @rob-solana I'll take a first crack at this issue

@rob-solana rob-solana changed the title Build command line tool for creating stake accounts for inclusion in genesis no way to test genesis stakes without putting bogus stakes in genesis_accounts.rs Nov 21, 2019
@garious
Copy link
Contributor

garious commented Nov 22, 2019

A problem description might be:
We want to test stake accounts in the SLP1 configuration using a genesis_accounts.rs containing only real accounts, for which we don't possess private keys. In SLP1, creating accounts is disabled, so we can't write those tests.

But that's probably not your problem, because your proposed solution wouldn't work.

@danpaul000
Copy link
Contributor Author

A problem description might be:
We want to test stake accounts in the SLP1 configuration using a genesis_accounts.rs containing only real accounts, for which we don't possess private keys. In SLP1, creating accounts is disabled, so we can't write those tests.

But that's probably not your problem, because your proposed solution wouldn't work.

Sorry I mis-read your label earlier before jumping the gun. Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants