Add option to load accounts from file

This introduces the `--clone-from-file` option for
solana-test-validator. It allows specifying any number of files
(without extension) containing account info and data, which will be
loaded at genesis. This is similar to `--bpf-program` for programs
loading.

The files will be searched for in the CWD or in `tests/fixtures`.

Example: `solana-test-validator --clone-from-file SRM_token USD_token`
This commit is contained in:
losman0s
2021-12-11 22:17:57 +01:00
committed by Michael Vines
parent 0e9e67b65d
commit 9b06d64eb8
7 changed files with 93 additions and 8 deletions

3
Cargo.lock generated
View File

@@ -5981,6 +5981,9 @@ version = "1.10.0"
dependencies = [
"base64 0.12.3",
"log 0.4.14",
"serde_derive",
"serde_json",
"solana-cli-output",
"solana-client",
"solana-core",
"solana-gossip",