Skip to content

Commit

Permalink
infra flag changes for DSN sync and POT (#360)
Browse files Browse the repository at this point in the history
* infra flag changes for DSN sync and POT

* enable full sync on RPCs only
  • Loading branch information
DaMandal0rian authored Oct 31, 2024
1 parent b9a77a0 commit 1fdf217
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion ansible/network/files/docker-compose-autoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "archive",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--node-key", "${NODE_KEY}",
Expand Down
2 changes: 1 addition & 1 deletion ansible/network/files/docker-compose-bootstrap-autoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
## comment to disable external addresses using IP format
Expand Down
3 changes: 1 addition & 2 deletions ansible/network/files/docker-compose-bootstrap-domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
## comment to disable external addresses using IP format
Expand Down
3 changes: 1 addition & 2 deletions ansible/network/files/docker-compose-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/${EXTERNAL_IP}/tcp/30433",
Expand Down
2 changes: 1 addition & 1 deletion ansible/network/files/docker-compose-domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ services:
"--state-pruning", "archive",
"--blocks-pruning", "archive",
"--sync", "full",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--node-key", "${NODE_KEY}",
Expand Down
3 changes: 1 addition & 2 deletions ansible/network/files/docker-compose-farmer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/${EXTERNAL_IP}/tcp/30433",
Expand Down
2 changes: 1 addition & 1 deletion ansible/network/files/docker-compose-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ services:
"--state-pruning", "archive",
"--blocks-pruning", "archive",
"--sync", "full",
# "--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/${EXTERNAL_IP}/tcp/30433",
Expand Down
1 change: 0 additions & 1 deletion templates/scripts/create_bootstrap_node_compose_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ cat >> ~/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ cat >> ~/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
1 change: 0 additions & 1 deletion templates/scripts/create_farmer_node_compose_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ cat >> ~/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ cat >> ~/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "archive",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--node-key", "\${NODE_KEY}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cat >> ~/subspace/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
## comment to disable external addresses using IP format for now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cat >> ~/subspace/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/$EXTERNAL_IP/tcp/30433",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ cat >> ~/subspace/subspace/docker-compose.yml << EOF
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
## comment to disable external addresses using IP format for now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "archive",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--node-key", "\${NODE_KEY}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "256",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/$EXTERNAL_IP/tcp/30433",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ services:
"--base-path", "/var/subspace",
"--state-pruning", "archive",
"--blocks-pruning", "archive",
# "--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--sync", "full",
"--pot-external-entropy", "\${POT_EXTERNAL_ENTROPY}",
"--listen-on", "/ip4/0.0.0.0/tcp/30333",
"--listen-on", "/ip6/::/tcp/30333",
"--dsn-external-address", "/ip4/$EXTERNAL_IP/tcp/30433",
Expand Down

0 comments on commit 1fdf217

Please sign in to comment.