forked from TrueCloudLab/frostfs-dev-env
[#1] Update notary service description
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
6b0ce07808
commit
e551fac84d
1 changed files with 4 additions and 62 deletions
|
@ -9,64 +9,10 @@ to do these operations. Notary service calculates the exact amount of GAS
|
||||||
to execute transaction, therefore operations are cheaper (withdraw fee **with**
|
to execute transaction, therefore operations are cheaper (withdraw fee **with**
|
||||||
notary is less than 0.5 GAS; withdraw fee **without** notary is up to 7.0 GAS).
|
notary is less than 0.5 GAS; withdraw fee **without** notary is up to 7.0 GAS).
|
||||||
|
|
||||||
By default, main chain service is running without notary service, and side chain
|
Currently, frostfs-dev-env contains single chain (see morph service) and it
|
||||||
running with notary service. However, you can change that in configuration.
|
enables notary service from the genesis block.
|
||||||
|
|
||||||
# Disable notary service in side chain
|
To enable notary service, use neo-go configuration below.
|
||||||
|
|
||||||
To disable notary service in side chain do these steps.
|
|
||||||
|
|
||||||
1. Update `.env` and choose notary disabled chain dump for side chain.
|
|
||||||
|
|
||||||
```
|
|
||||||
MORPH_CHAIN_URL="https://github.com/nspcc-dev/neofs-contract/releases/download/v0.9.0/devenv_sidechain_notary_disabled.gz"
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure to update chain dump files with `make get` target.
|
|
||||||
|
|
||||||
2. Update `service/morph_chain/protocol.privnet.yml` and disable notary settings
|
|
||||||
and state root in header.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
ProtocolConfiguration:
|
|
||||||
StateRootInHeader: false
|
|
||||||
P2PSigExtensions: false
|
|
||||||
ApplicationConfiguration:
|
|
||||||
P2PNotary:
|
|
||||||
Enabled: false
|
|
||||||
```
|
|
||||||
|
|
||||||
Chain dump without notary service does not have predefined network map.
|
|
||||||
Therefore, you need to wait about 5 minutes until new epoch tick with updated
|
|
||||||
network map.
|
|
||||||
|
|
||||||
|
|
||||||
3. Enable helper commands
|
|
||||||
|
|
||||||
To enable helper commands such as `make tick.epoch` or `make update.epoch_duration`
|
|
||||||
make sure to export non-empty `FROSTFS_NOTARY_DISABLED` environment variable.
|
|
||||||
```
|
|
||||||
$ export FROSTFS_NOTARY_DISABLED=1
|
|
||||||
```
|
|
||||||
|
|
||||||
Use `unset` command to return it back.
|
|
||||||
```
|
|
||||||
$ unset FROSTFS_NOTARY_DISABLED
|
|
||||||
```
|
|
||||||
|
|
||||||
# Enable notary service in main chain
|
|
||||||
|
|
||||||
To enable notary service in main chain do these steps.
|
|
||||||
|
|
||||||
1. Update `.env` and choose notary enabled chain dump for main chain.
|
|
||||||
|
|
||||||
```
|
|
||||||
CHAIN_URL="https://github.com/nspcc-dev/neofs-contract/releases/download/v0.9.0/devenv_mainchain.gz"
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure to update chain dump files with `make get` target.
|
|
||||||
|
|
||||||
2. Update `service/chain/protocol.privnet.yml` and enable notary settings.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
ProtocolConfiguration:
|
ProtocolConfiguration:
|
||||||
|
@ -75,7 +21,3 @@ ApplicationConfiguration:
|
||||||
P2PNotary:
|
P2PNotary:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
```
|
```
|
||||||
|
|
||||||
Main chain generates a block once per 15 seconds, so Inner Ring takes about
|
|
||||||
15-30 seconds to make a notary deposit in main chain after startup. Then
|
|
||||||
frostfs-dev-env is ready to work.
|
|
||||||
|
|
Loading…
Reference in a new issue