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

Enable Solana Test Validator Control Via Anchor.toml #534

Closed
bonedaddy opened this issue Jul 18, 2021 · 3 comments
Closed

Enable Solana Test Validator Control Via Anchor.toml #534

bonedaddy opened this issue Jul 18, 2021 · 3 comments
Labels

Comments

@bonedaddy
Copy link
Contributor

bonedaddy commented Jul 18, 2021

Overview

Occasionally one may want to modify the test validator settings, such as ledger directory, shred count, rpc, etc... At the moment the only way to do this with Anchor is starting the test validator beforehand such that anchor skips creating one.

In addition to this one may want the test validator to stay on after anchor tests finish, perhaps to inspect transactions, or accounts via the cli or connecting the validator to a block explorer.

Additionally one may way to kill the existing validator at the start of the next test run to aovid persisting state in between test runs

Solution

A proposed solution could be

[[test.validator]]
terminate-validator-post-test = false
terminate-validator-pre-test = true
limit-ledger-size = 50000000000
url = "https://some-rpc-url.com"
rpc-port = 8899
@armaniferrante
Copy link
Member

armaniferrante commented Jul 18, 2021

I like it. Though the table name can just be [test.validator] or potentially [localnet] or [local-validator].

@paul-schaaf
Copy link
Contributor

@tomlinton looks like this shouldve been closed by #834 ?

@tomlinton
Copy link
Contributor

Yep 👍

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

No branches or pull requests

4 participants