Skip to content

Commit

Permalink
[config] update example test config (aptos-labs#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry-x authored May 13, 2022
1 parent 91034ea commit a2c87fa
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
29 changes: 28 additions & 1 deletion config/src/config/test_data/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ consensus:
execution:
genesis_file_location: "relative/path/to/genesis"

# For validator node we setup two networks, validator_network to allow validator connect to each other,
# and full_node_networks to allow fullnode connects to validator.

full_node_networks:
- listen_address: "/ip4/0.0.0.0/tcp/7180"
- listen_address: "/ip4/0.0.0.0/tcp/6181"
max_outbound_connections: 0
identity:
type: "from_storage"
Expand Down Expand Up @@ -47,6 +50,30 @@ validator_network:
ca_certificate: "/full/path/to/certificate"
token:
from_disk: "/full/path/to/token"
### Load keys from file
# identity:
# type: "from_file"
# path: /full/path/to/private-keys.yml
#
### Load keys from secure storage service like vault:
#
# identity:
# type: "from_storage"
# key_name: "validator_network"
# peer_id_name: "owner_account"
# backend:
# type: "vault"
# server: "https://127.0.0.1:8200"
# ca_certificate: "/full/path/to/certificate"
# token:
# from_disk: "/full/path/to/token"
#
### Load keys directly from config
#
# identity:
# type: "from_config"
# key: "b0f405a3e75516763c43a2ae1d70423699f34cd68fa9f8c6bb2d67aa87d0af69"
# peer_id: "00000000000000000000000000000000d58bc7bb154b38039bc9096ce04e1237"
mutual_authentication: true
max_frame_size: 8388608 # 8 MiB
api:
Expand Down
12 changes: 7 additions & 5 deletions config/src/config/test_data/validator_full_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,31 @@ base:
execution:
genesis_file_location: "relative/path/to/genesis"

# For validator fullnode we setup two network ids, the private "vfn" identity will allow it to connect to the validator node,
# and the public identity will allow it to connects to other fullnodes onchain.

full_node_networks:
- listen_address: "/ip4/0.0.0.0/tcp/6180"
discovery_method: "onchain"
identity:
type: "from_storage"
key_name: "fullnode_network"
peer_id_name: "operator_account"
peer_id_name: "owner_account"
backend:
type: "vault"
server: "https://127.0.0.1:8200"
ca_certificate: "/full/path/to/certificate"
token:
from_disk: "/full/path/to/token"
network_id: "public"
- listen_address: "/ip4/0.0.0.0/tcp/7180"
- listen_address: "/ip4/0.0.0.0/tcp/6181"
max_outbound_connections: 1
network_id:
private: "vfn"
seeds:
"00000000000000000000000000000000c227da54069989f283712e4016704660":
00000000000000000000000000000000d58bc7bb154b38039bc9096ce04e1237:
addresses:
- "/ip4/127.0.0.1/tcp/58259/ln-noise-ik/c998dcd54c3daf48e0ad516d94b7be0b0b7a27caa00541f2b2c14b13500df10b/ln-handshake/0"
keys: ["c998dcd54c3daf48e0ad516d94b7be0b0b7a27caa00541f2b2c14b13500df10b"]
- "/ip4/127.0.0.1/tcp/6181/ln-noise-ik/f0274c2774519281a8332d0bb9d8101bd58bc7bb154b38039bc9096ce04e1237/ln-handshake/0"
role: "Validator"
api:
enabled: true

0 comments on commit a2c87fa

Please sign in to comment.