Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testnet and soroban-dev to v20.0.0rc1/2 #494

Merged
merged 10 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
arch: amd64
tag: latest-amd64
core_ref: v19.13.0
go_ref: horizon-v2.26.1
soroban_tools_ref: v0.4.0
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
test_matrix: |
{
"network": ["testnet", "pubnet", "local"],
"options": ["", "--enable-horizon-captive-core"],
"options": ["", "--enable-horizon-captive-core", "--enable-soroban-rpc"],
"exclude": [
{ "network": "testnet", "options": "--enable-horizon-captive-core" },
{ "network": "pubnet", "options": "--enable-horizon-captive-core" },
{ "network": "pubnet", "options": "--enable-soroban-rpc" },
]
}

Expand All @@ -58,14 +58,14 @@ jobs:
arch: arm64
tag: latest-arm64
core_ref: v19.13.0
go_ref: horizon-v2.26.1
soroban_tools_ref: v0.4.0
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
test_matrix: |
{
"network": ["testnet", "pubnet", "local"],
"options": ["", "--enable-horizon-captive-core"],
"options": ["", "--enable-horizon-captive-core", "--enable-soroban-rpc"],
"exclude": [
{ "network": "testnet", "options": "--enable-horizon-captive-core" },
{ "network": "pubnet", "options": "--enable-soroban-rpc" },
{ "network": "pubnet", "options": "--enable-horizon-captive-core" },
]
}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-soroban-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
core_ref: v20.0.0rc1
core_configure_flags: --disable-tests
core_supports_testing_soroban_high_limit_override: 'true'
go_ref: soroban-v1.0.0-rc
soroban_tools_ref: v20.0.0-rc1
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
test_matrix: |
{
"network": ["local"],
Expand All @@ -57,8 +57,8 @@ jobs:
core_configure_flags: --disable-tests
core_supports_testing_soroban_high_limit_override: 'true'
core_build_runner_type: ubuntu-latest-16-cores
go_ref: soroban-v1.0.0-rc
soroban_tools_ref: v20.0.0-rc1
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
soroban_rpc_build_runner_type: ubuntu-latest-16-cores
test_matrix: |
{
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
arch: amd64
tag: testing-amd64
core_ref: v19.13.0
go_ref: horizon-v2.26.1
soroban_tools_ref: v0.4.0
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
test_matrix: |
{
"network": ["testnet", "pubnet", "local"],
"options": ["", "--enable-horizon-captive-core"],
"options": ["", "--enable-horizon-captive-core", "--enable-soroban-rpc"],
"exclude": [
{ "network": "testnet", "options": "--enable-horizon-captive-core" },
{ "network": "pubnet", "options": "--enable-soroban-rpc" },
{ "network": "pubnet", "options": "--enable-horizon-captive-core" },
]
}
Expand All @@ -59,14 +59,14 @@ jobs:
arch: arm64
tag: testing-arm64
core_ref: v19.13.0
go_ref: horizon-v2.26.1
soroban_tools_ref: v0.4.0
go_ref: horizon-v2.27.0
soroban_tools_ref: v20.0.0-rc2
test_matrix: |
{
"network": ["testnet", "pubnet", "local"],
"options": ["", "--enable-horizon-captive-core"],
"options": ["", "--enable-horizon-captive-core", "--enable-soroban-rpc"],
"exclude": [
{ "network": "testnet", "options": "--enable-horizon-captive-core" },
{ "network": "pubnet", "options": "--enable-soroban-rpc" },
{ "network": "pubnet", "options": "--enable-horizon-captive-core" },
]
}
Expand Down
8 changes: 4 additions & 4 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ CURRENT_POSTGRES_PID=""

function main() {
process_args $*
if [ "$NETWORK" != "local" ] && [ "$NETWORK" != "futurenet" ] &&[ "$ENABLE_HORIZON_CAPTIVE_CORE" = "true" ]; then
echo "--enable-horizon-captive-core usage only supported on local/futurenet networks" >&2
if [ "$NETWORK" != "local" ] && [ "$NETWORK" != "futurenet" ] && [ "$NETWORK" != "testnet" ] && [ "$ENABLE_HORIZON_CAPTIVE_CORE" = "true" ]; then
echo "--enable-horizon-captive-core usage only supported on local/futurenet/testnet networks" >&2
exit 1
fi
if [ "$NETWORK" != "local" ] && [ "$NETWORK" != "futurenet" ] && [ "$ENABLE_SOROBAN_RPC" = "true" ]; then
echo "--enable-soroban-rpc usage only supported on local/futurenet networks" >&2
if [ "$NETWORK" != "local" ] && [ "$NETWORK" != "futurenet" ] && [ "$NETWORK" != "testnet" ] && [ "$ENABLE_SOROBAN_RPC" = "true" ]; then
echo "--enable-soroban-rpc usage only supported on local/futurenet/testnet networks" >&2
exit 1
fi
if [ "$ENABLE_SOROBAN_RPC" != "true" ] && [ "$ENABLE_SOROBAN_DIAGNOSTIC_EVENTS" = "true" ]; then
Expand Down
33 changes: 33 additions & 0 deletions testnet/horizon/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# captive core config for futurenet
NETWORK_PASSPHRASE="__NETWORK__"
# disable the web service port, not used
HTTP_PORT=0
PUBLIC_HTTP_PORT=false
# To avoid conflicts with the core instance
PEER_PORT=11725
DATABASE="__DATABASE__"

NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
UNSAFE_QUORUM=true

[[HOME_DOMAINS]]
HOME_DOMAIN="testnet.stellar.org"
QUALITY="MEDIUM"
[[VALIDATORS]]
NAME="sdf_testnet_1"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GDKXE2OZMJIPOSLNA6N6F2BVCI3O777I2OOC4BV7VOYUEHYX7RTRYA7Y"
ADDRESS="core-testnet1.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_001/{0} -o {1}"
[[VALIDATORS]]
NAME="sdf_testnet_2"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GCUCJTIYXSOXKBSNFGNFWW5MUQ54HKRPGJUTQFJ5RQXZXNOLNXYDHRAP"
ADDRESS="core-testnet2.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_002/{0} -o {1}"
[[VALIDATORS]]
NAME="sdf_testnet_3"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GC2V2EFSXN6SQTWVYA5EPJPBWWIMSD2XQNKUOHGEKB535AQE2I6IXV2Z"
ADDRESS="core-testnet3.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_003/{0} -o {1}"
13 changes: 13 additions & 0 deletions testnet/soroban-rpc/etc/soroban-rpc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ENDPOINT="localhost:8003"
ADMIN_ENDPOINT="__SOROBAN_RPC_ADMIN_ENDPOINT__"
FRIENDBOT_URL="https://friendbot-testnet.stellar.org/"
NETWORK_PASSPHRASE="__NETWORK__"
STELLAR_CORE_URL="http://localhost:11626"
CAPTIVE_CORE_CONFIG_PATH="/opt/stellar/soroban-rpc/etc/stellar-captive-core.cfg"
CAPTIVE_CORE_STORAGE_PATH="/opt/stellar/soroban-rpc/captive-core"
CAPTIVE_CORE_USE_DB=true
STELLAR_CORE_BINARY_PATH="/usr/bin/stellar-core"
HISTORY_ARCHIVE_URLS="__ARCHIVE__"
DB_PATH="/opt/stellar/soroban-rpc/rpc_db.sqlite"
STELLAR_CAPTIVE_CORE_HTTP_PORT=0
CHECKPOINT_FREQUENCY=64
35 changes: 35 additions & 0 deletions testnet/soroban-rpc/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# captive core config for futurenet
NETWORK_PASSPHRASE="__NETWORK__"
# disable the web service port, not used
HTTP_PORT=0
PUBLIC_HTTP_PORT=false
# To avoid conflicts with the core instance
PEER_PORT=11726
DATABASE="__DATABASE__"

EXPERIMENTAL_BUCKETLIST_DB=true
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__
UNSAFE_QUORUM=true

[[HOME_DOMAINS]]
HOME_DOMAIN="testnet.stellar.org"
QUALITY="MEDIUM"
[[VALIDATORS]]
NAME="sdf_testnet_1"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GDKXE2OZMJIPOSLNA6N6F2BVCI3O777I2OOC4BV7VOYUEHYX7RTRYA7Y"
ADDRESS="core-testnet1.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_001/{0} -o {1}"
[[VALIDATORS]]
NAME="sdf_testnet_2"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GCUCJTIYXSOXKBSNFGNFWW5MUQ54HKRPGJUTQFJ5RQXZXNOLNXYDHRAP"
ADDRESS="core-testnet2.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_002/{0} -o {1}"
[[VALIDATORS]]
NAME="sdf_testnet_3"
HOME_DOMAIN="testnet.stellar.org"
PUBLIC_KEY="GC2V2EFSXN6SQTWVYA5EPJPBWWIMSD2XQNKUOHGEKB535AQE2I6IXV2Z"
ADDRESS="core-testnet3.stellar.org"
HISTORY="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_003/{0} -o {1}"
9 changes: 9 additions & 0 deletions testnet/supervisor/etc/supervisord.conf.d/soroban-rpc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[program:soroban-rpc]
user=stellar
directory=/opt/stellar/soroban-rpc
command=/opt/stellar/soroban-rpc/bin/start
autostart=true
startretries=50
autorestart=true
priority=60
redirect_stderr=true