-
Notifications
You must be signed in to change notification settings - Fork 28
Tutorial #894
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
Open
fluidvanadium
wants to merge
8
commits into
dev
Choose a base branch
from
tutorial
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tutorial #894
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
44ca045
Rephrase a zainod start error.
fluidvanadium f634d77
Add tutorial doc.
fluidvanadium 10afbeb
Debugging connection.
fluidvanadium 3bd2a08
Added TestNodeConnectionError.
fluidvanadium 43c775d
Merge remote-tracking branch 'labs/dev' into HEAD
fluidvanadium 083dab1
Add tutorial and example_configs.
fluidvanadium ba0ee6f
Merge branch 'dev' into tutorial
fluidvanadium c1bbcb1
Remove accidentally included note file.
fluidvanadium File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| This is a tutorial to launch zaino, connected to a local validator. | ||
|
|
||
| Step 0: Git check out zaino. | ||
|
|
||
| Step 1: Set up zebra v3.1.0. | ||
| ``` | ||
| git clone git@github.com:ZcashFoundation/zebra.git | ||
| git checkout v3.1.0 | ||
| cargo install --path zebrad --locked | ||
| ``` | ||
|
|
||
| EASY PATH: | ||
| Use included Testnet Configuration | ||
|
|
||
| In the zaino git root, run | ||
| ``` | ||
| zebrad -c example_configs/zebrad_config_3.1.0.toml | ||
| ``` | ||
| in another shell, | ||
| ``` | ||
| cargo run --release -- start -c example_configs/zainod.toml | ||
| ``` | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Zaino Configuration | ||
| # | ||
| # Generated with `zainod generate-config` | ||
| # | ||
| # Configuration sources are layered (highest priority first): | ||
| # 1. Environment variables (prefix: ZAINO_) | ||
| # 2. TOML configuration file | ||
| # 3. Built-in defaults | ||
| # | ||
| # For detailed documentation, see: | ||
| # https://github.com/zingolabs/zaino | ||
|
|
||
| backend = 'fetch' | ||
| zebra_db_path = '/home/cupress/.cache/zebra' | ||
| network = 'Testnet' | ||
|
|
||
| [grpc_settings] | ||
| listen_address = '127.0.0.1:8137' | ||
|
|
||
| [validator_settings] | ||
| validator_grpc_listen_address = '127.0.0.1:18232' | ||
| validator_jsonrpc_listen_address = '127.0.0.1:18231' | ||
| validator_user = 'xxxxxx' | ||
| validator_password = 'xxxxxx' | ||
|
|
||
| [service] | ||
| timeout = 30 | ||
| channel_size = 32 | ||
| [storage.cache] | ||
| capacity = 10000 | ||
| shard_power = 4 | ||
|
|
||
| [storage.database] | ||
| path = '/home/cupress/.cache/zaino' | ||
| size = 128 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| # Default configuration for zebrad. | ||
| # | ||
| # This file can be used as a skeleton for custom configs. | ||
| # | ||
| # Unspecified fields use default values. Optional fields are Some(field) if the | ||
| # field is present and None if it is absent. | ||
| # | ||
| # This file is generated as an example using zebrad's current defaults. | ||
| # You should set only the config options you want to keep, and delete the rest. | ||
| # Only a subset of fields are present in the skeleton, since optional values | ||
| # whose default is None are omitted. | ||
| # | ||
| # The config format (including a complete list of sections and fields) is | ||
| # documented here: | ||
| # https://docs.rs/zebrad/latest/zebrad/config/struct.ZebradConfig.html | ||
| # | ||
| # CONFIGURATION SOURCES (in order of precedence, highest to lowest): | ||
| # | ||
| # 1. Environment variables with ZEBRA_ prefix (highest precedence) | ||
| # - Format: ZEBRA_SECTION__KEY (double underscore for nested keys) | ||
| # - Examples: | ||
| # - ZEBRA_NETWORK__NETWORK=Testnet | ||
| # - ZEBRA_RPC__LISTEN_ADDR=127.0.0.1:8232 | ||
| # - ZEBRA_STATE__CACHE_DIR=/path/to/cache | ||
| # - ZEBRA_TRACING__FILTER=debug | ||
| # - ZEBRA_METRICS__ENDPOINT_ADDR=0.0.0.0:9999 | ||
| # | ||
| # 2. Configuration file (TOML format) | ||
| # - At the path specified via -c flag, e.g. `zebrad -c myconfig.toml start`, or | ||
| # - At the default path in the user's preference directory (platform-dependent, see below) | ||
| # | ||
| # 3. Hard-coded defaults (lowest precedence) | ||
| # | ||
| # The user's preference directory and the default path to the `zebrad` config are platform dependent, | ||
| # based on `dirs::preference_dir`, see https://docs.rs/dirs/latest/dirs/fn.preference_dir.html : | ||
| # | ||
| # | Platform | Value | Example | | ||
| # | -------- | ------------------------------------- | ---------------------------------------------- | | ||
| # | Linux | `$XDG_CONFIG_HOME` or `$HOME/.config` | `/home/alice/.config/zebrad.toml` | | ||
| # | macOS | `$HOME/Library/Preferences` | `/Users/Alice/Library/Preferences/zebrad.toml` | | ||
| # | Windows | `{FOLDERID_RoamingAppData}` | `C:\Users\Alice\AppData\Local\zebrad.toml` | | ||
|
|
||
| [consensus] | ||
| checkpoint_sync = true | ||
|
|
||
| [health] | ||
| enforce_on_test_networks = false | ||
| min_connected_peers = 1 | ||
| ready_max_blocks_behind = 2 | ||
| ready_max_tip_age = "5m" | ||
|
|
||
| [mempool] | ||
| eviction_memory_time = "1h" | ||
| tx_cost_limit = 80000000 | ||
|
|
||
| [metrics] | ||
|
|
||
| [mining] | ||
| internal_miner = false | ||
|
|
||
| [network] | ||
| cache_dir = true | ||
| crawl_new_peer_interval = "1m 1s" | ||
| initial_mainnet_peers = [ | ||
| "dnsseed.z.cash:8233", | ||
| "dnsseed.str4d.xyz:8233", | ||
| "mainnet.seeder.zfnd.org:8233", | ||
| ] | ||
| initial_testnet_peers = [ | ||
| "dnsseed.testnet.z.cash:18233", | ||
| "testnet.seeder.zfnd.org:18233", | ||
| ] | ||
| listen_addr = "[::]:8233" | ||
| max_connections_per_ip = 1 | ||
| network = "Testnet" | ||
| peerset_initial_target_size = 25 | ||
|
|
||
| [rpc] | ||
| cookie_dir = "/home/cupress/.cache/zebra" | ||
| debug_force_finished_sync = false | ||
| enable_cookie_auth = false | ||
| max_response_body_size = 52428800 | ||
| parallel_cpu_threads = 0 | ||
| listen_addr = '127.0.0.1:18231' | ||
| indexer_listen_addr = '127.0.0.1:18232' | ||
|
|
||
| [state] | ||
| cache_dir = "/home/cupress/.cache/zebra" | ||
| delete_old_database = true | ||
| ephemeral = false | ||
| should_backup_non_finalized_state = true | ||
|
|
||
| [sync] | ||
| checkpoint_verify_concurrency_limit = 1000 | ||
| download_concurrency_limit = 50 | ||
| full_verify_concurrency_limit = 20 | ||
| parallel_cpu_threads = 0 | ||
|
|
||
| [tracing] | ||
| buffer_limit = 128000 | ||
| force_use_color = false | ||
| use_color = true | ||
| use_journald = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example_configsdir i like, I would probably place it underdocs/