Skip to content

Commit

Permalink
Merge branch 'iroha2-dev' into cli_derive_to_syn2
Browse files Browse the repository at this point in the history
  • Loading branch information
VAmuzing authored Jan 9, 2024
2 parents b6abbc3 + 1b2b2cd commit fb9db00
Show file tree
Hide file tree
Showing 61 changed files with 1,533 additions and 1,181 deletions.
95 changes: 27 additions & 68 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,18 @@ A brief overview on how to configure and maintain an Iroha instance:

### Configuration

**Note:** this section is under development. You can track it in the [issue](https://github.com/hyperledger/iroha-2-docs/issues/392).
There is a set of configuration parameters that could be passed either through a configuration file or environment variables.

```shell
# look for `config.json` or `config.json5` (won't fail if files are not found)
iroha

# Override default config path through CLI or ENV
iroha --config /path/to/config.json
IROHA_CONFIG=/path/to/config.json iroha
```

**Note:** detailed configuration reference is [work in progress](https://github.com/hyperledger/iroha-2-docs/issues/392).

### Endpoints

Expand Down Expand Up @@ -198,9 +209,9 @@ prometheus --config.file=configs/prometheus.yml

### Storage

The blocks are written to the `blocks` sub-folder, which is created automatically by Iroha in the working directory of the peer. Additionally, if specified, the logging file must also be stored in a user-specified directory.
Iroha stores blocks and snapshots in the `storage` directory, which is created automatically by Iroha in the working directory of the peer. If `kura.block_store_path` is specified in the config file, it overrides the default one and is resolved relative to the config file location.

No additional storage is necessary.
**Note:** detailed configuration reference is [work in progress](https://github.com/hyperledger/iroha-2-docs/issues/392).

### Scalability

Expand Down
6 changes: 6 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ iroha_torii = { workspace = true }
iroha_genesis = { workspace = true }
iroha_wasm_builder = { workspace = true }

clap = { workspace = true, features = ["derive", "env", "string"] }
color-eyre = { workspace = true }
eyre = { workspace = true }
tracing = { workspace = true }
Expand All @@ -67,6 +68,11 @@ thread-local-panic-hook = { version = "0.1.0", optional = true }

[dev-dependencies]
serial_test = "2.0.0"
tempfile = { workspace = true }
serde_json = { workspace = true }
futures = { workspace = true }
path-absolutize = { workspace = true }
assertables = "7"

[build-dependencies]
iroha_wasm_builder = { workspace = true }
Expand Down
Loading

0 comments on commit fb9db00

Please sign in to comment.