Skip to content

Commit

Permalink
Enable ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION on rpc when --enable-soro…
Browse files Browse the repository at this point in the history
…ban-diagnostic-events is in use (#580)
  • Loading branch information
leighmcculloch authored Mar 5, 2024
1 parent 32e3f13 commit 6bf55f9
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 19 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/build-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:

complete:
if: always()
needs: [latest, testing, future]
needs:
- latest
- testing
# - future
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down Expand Up @@ -58,12 +61,16 @@ jobs:
sha: ${{ github.event.pull_request.head.sha || github.sha }}
tag-prefix: ${{ needs.setup.outputs.tag-prefix }}

future:
needs: [setup]
uses: ./.github/workflows/build-future.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
sha: ${{ github.event.pull_request.head.sha || github.sha }}
tag-prefix: ${{ needs.setup.outputs.tag-prefix }}
# TODO: Reenable the future build when the version of soroban-rpc used in the
# future build supports the stellar-core ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION
# config, and the time has come for a new preview release.
#
# future:
# needs: [setup]
# uses: ./.github/workflows/build-future.yml
# secrets:
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
# with:
# sha: ${{ github.event.pull_request.head.sha || github.sha }}
# tag-prefix: ${{ needs.setup.outputs.tag-prefix }}
3 changes: 2 additions & 1 deletion futurenet/horizon/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ PUBLIC_HTTP_PORT=false
# To avoid conflicts with the core instance
PEER_PORT=11725
DATABASE="__DATABASE__"
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

FAILURE_SAFETY=0
UNSAFE_QUORUM=true
Expand Down
4 changes: 3 additions & 1 deletion futurenet/soroban-rpc/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11825
DATABASE="__DATABASE__"

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__
ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

EXPERIMENTAL_BUCKETLIST_DB=true
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

FAILURE_SAFETY=0
UNSAFE_QUORUM=true
Expand Down
3 changes: 2 additions & 1 deletion local/horizon/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11725
DATABASE="__DATABASE__"
ARTIFICIALLY_ACCELERATE_TIME_FOR_TESTING=true
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

UNSAFE_QUORUM=true
FAILURE_SAFETY=0
Expand Down
4 changes: 3 additions & 1 deletion local/soroban-rpc/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11825
DATABASE="__DATABASE__"
ARTIFICIALLY_ACCELERATE_TIME_FOR_TESTING=true
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__
ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

EXPERIMENTAL_BUCKETLIST_DB=true
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
Expand Down
1 change: 1 addition & 0 deletions pubnet/horizon/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11725
DATABASE="__DATABASE__"

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

[[HOME_DOMAINS]]
HOME_DOMAIN="stellar.org"
Expand Down
4 changes: 3 additions & 1 deletion pubnet/soroban-rpc/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11825
DATABASE="__DATABASE__"

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__
ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

EXPERIMENTAL_BUCKETLIST_DB=true
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

# TODO: Connect only to the local node after
# https://github.com/stellar/go/pull/5053 is available.
Expand Down
4 changes: 2 additions & 2 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function init_horizon() {
HORIZON_CAPTIVE_CORE_CFG=$HZHOME/etc/stellar-captive-core.cfg
run_silent "finalize-horizon-captivecore-db" perl -pi -e "s*__DATABASE__*sqlite3://$HZHOME/captive-core/stellar.db*g" $HORIZON_CAPTIVE_CORE_CFG
perl -pi -e "s/__NETWORK__/$NETWORK_PASSPHRASE/g" $HORIZON_CAPTIVE_CORE_CFG
run_silent "finalize-horizon-captivecore-config-enable-soroban-diagnostic-events" perl -pi -e "s/__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__/ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=$ENABLE_SOROBAN_DIAGNOSTIC_EVENTS/g" $HORIZON_CAPTIVE_CORE_CFG
run_silent "finalize-horizon-captivecore-config-enable-soroban-diagnostic-events" perl -pi -e "s/__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__/$ENABLE_SOROBAN_DIAGNOSTIC_EVENTS/g" $HORIZON_CAPTIVE_CORE_CFG

cat << EOF >> etc/horizon.env
export CAPTIVE_CORE_CONFIG_PATH=$HORIZON_CAPTIVE_CORE_CFG
Expand Down Expand Up @@ -486,7 +486,7 @@ function init_soroban_rpc() {
SOROBAN_RPC_CAPTIVE_CORE_CFG=$SOROBAN_RPC_HOME/etc/stellar-captive-core.cfg
run_silent "finalize-soroban-rpc-captivecore-db" perl -pi -e "s*__DATABASE__*sqlite3://$SOROBAN_RPC_HOME/captive-core/stellar-rpc.db*g" $SOROBAN_RPC_CAPTIVE_CORE_CFG
perl -pi -e "s/__NETWORK__/$NETWORK_PASSPHRASE/g" $SOROBAN_RPC_CAPTIVE_CORE_CFG
run_silent "finalize-soroban-rpc-captivecore-config-enable-soroban-diagnostic-events" perl -pi -e "s/__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__/ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=$ENABLE_SOROBAN_DIAGNOSTIC_EVENTS/g" $SOROBAN_RPC_CAPTIVE_CORE_CFG
run_silent "finalize-soroban-rpc-captivecore-config-enable-soroban-diagnostic-events" perl -pi -e "s/__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__/$ENABLE_SOROBAN_DIAGNOSTIC_EVENTS/g" $SOROBAN_RPC_CAPTIVE_CORE_CFG

local ADMIN_ENDPOINT=0.0.0.0:6061
if [ "$ENABLE_SOROBAN_RPC_ADMIN_ENDPOINT" != "true" ]; then
Expand Down
2 changes: 1 addition & 1 deletion testnet/horizon/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PUBLIC_HTTP_PORT=false
# To avoid conflicts with the core instance
PEER_PORT=11725
DATABASE="__DATABASE__"
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

UNSAFE_QUORUM=true
FAILURE_SAFETY=1
Expand Down
4 changes: 3 additions & 1 deletion testnet/soroban-rpc/etc/stellar-captive-core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ PUBLIC_HTTP_PORT=false
PEER_PORT=11825
DATABASE="__DATABASE__"

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__
ENABLE_DIAGNOSTICS_FOR_TX_SUBMISSION=__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

EXPERIMENTAL_BUCKETLIST_DB=true
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
__ENABLE_SOROBAN_DIAGNOSTIC_EVENTS__

# TODO: Connect only to the local node after
# https://github.com/stellar/go/pull/5053 is available.
Expand Down

0 comments on commit 6bf55f9

Please sign in to comment.