-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Internal consensus mode of Inner Ring with Sidechain auto-deploy
Signed-off-by: Leonard Lyubich <[email protected]>
- Loading branch information
1 parent
8ba9771
commit 12a4c5e
Showing
10 changed files
with
80 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Services start/stop order | ||
# Will start from top to bottom and stop in reverse | ||
nats | ||
ir | ||
storage |
This file contains 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# Will start from top to bottom and stop in reverse | ||
basenet | ||
chain | ||
morph_chain | ||
ir |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -30,10 +30,76 @@ mainnet: | |
|
||
# Neo side chain RPC settings | ||
morph: | ||
endpoints: # List of websocket RPC endpoints in sidechain | ||
- ws://morph-chain:30333/ws | ||
validators: # List of hex-encoded 33-byte public keys of sidechain validators to vote for at application startup | ||
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 | ||
consensus: | ||
magic: 15405 | ||
committee: | ||
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 | ||
storage: | ||
type: boltdb | ||
path: ./db/morph.bolt | ||
time_per_block: 1s | ||
max_traceable_blocks: 200000 | ||
seed_nodes: | ||
- :20333 | ||
rpc: | ||
listen: | ||
- ":30333" | ||
p2p: | ||
dial_timeout: 3s | ||
proto_tick_interval: | ||
listen: | ||
- ":20333" | ||
peers: | ||
min: 0 | ||
max: 10 | ||
attempts: 5 | ||
ping: | ||
interval: 30s | ||
timeout: 90s | ||
|
||
network_settings: # NeoFS network settings managed in the Netmap contract | ||
epoch_duration: 240 # Time interval (approximate) between two adjacent NeoFS epochs measured in Sidechain blocks. | ||
# Must be an integer in range [1, 18446744073709551615] | ||
max_object_size: 67108864 # [bytes] Maximum size of physically stored NeoFS objects. Note that this applies | ||
# only to objects located on storage nodes: user objects have no restrictions and, if necessary, are sliced. | ||
# Must be an integer in range [1, 18446744073709551615] | ||
require_homomorphic_hashing: true # Toggles the requirement for homomorphic hashing of object payloads. | ||
# Must be 'true' or 'false' | ||
allow_maintenance_mode: true # Toggles permission to transition storage nodes to maintenance state. | ||
# Must be 'true' or 'false' | ||
eigen_trust: | ||
alpha: 0.1 # Alpha parameter of EigenTrust algorithm used in the Reputation system. | ||
# Must be a floating point number in range [0, 1]. | ||
iterations_number: 4 # Number of EigenTrust algorithm iterations to pass in the Reputation system. | ||
# Must be an integer in range [1, 18446744073709551615] | ||
price: # Price settings. NEOFS means NeoFS Balance contract tokens (usually GASe-12). | ||
storage: 100000000 # [NEOFS] Price for 1GB of data paid every epoch by data owner to storage nodes. | ||
# Must be an integer in range [0, 18446744073709551615] | ||
fee: | ||
ir_candidate: 100 # [GASe-8] Contribution from the new candidate to the Inner Ring. Must be non-negative integer | ||
# Must be an integer in range [0, 18446744073709551615] | ||
withdraw: 100000000 # [GASe-8] Fee paid by the user account to; | ||
# - NeoFS Processing contract (if Notary service is enabled in the NeoFS Mainchain) | ||
# - each Alphabet member (otherwise) | ||
# Must be an integer in range [0, 18446744073709551615] | ||
audit: 10000 # [NEOFS] Fee for data audit paid by storage group owner to the auditor (Inner Ring member). | ||
# Must be an integer in range [0, 18446744073709551615] | ||
new_container: 1000 # [NEOFS] Fee for new container paid by creator to each Alphabet member. | ||
# Must be an integer in range [0, 18446744073709551615] | ||
container_domain: 500 # [NEOFS] Fee for container's NNS domain paid by container creator to each Alphabet member. | ||
# Must be a non-negative integer | ||
custom: # Optional list of custom key-value pairs to be set in the network configuration. Forbidden keys: | ||
# [AuditFee, BasicIncomeRate, ContainerAliasFee, ContainerFee, EigenTrustAlpha, EigenTrustIterations, EpochDuration, | ||
# HomomorphicHashingDisabled, InnerRingCandidateFee, MaintenanceModeAllowed, MaxObjectSize, WithdrawFee] | ||
# Note that this list can be extended in the future, so, to avoid potential collision, it is recommended | ||
# to use the most specific keys. | ||
- my_custom_key1=val1 | ||
- my_custom_key2=val2 | ||
|
||
nns: | ||
system_email: [email protected] | ||
|
||
# Network time settings | ||
timers: | ||
|
This file contains 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
This file contains 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