Skip to content

Commit 80c5bcd

Browse files
Move the disabling of Horizon state verification into horizon.env files (#813)
### What Disable state verification for Horizon by setting INGEST_DISABLE_STATE_VERIFICATION=True directly in horizon.env files for both common and local configurations. Remove conditional logic from the start script that previously set this variable only for local networks or protocol versions above 19. ### Why State verification is now disabled universally rather than conditionally, simplifying configuration and ensuring consistent behavior across all network types and protocol versions. The conditions are practically true all the time anyway, since it is always set when the protocol is greater than 19.
1 parent b3e6ea6 commit 80c5bcd

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

common/horizon/etc/horizon.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ export HISTORY_ARCHIVE_URLS="__ARCHIVE__"
1515
export ADMIN_PORT=6060
1616
export PORT=8001
1717
export CHECKPOINT_FREQUENCY=64
18+
export INGEST_DISABLE_STATE_VERIFICATION=True

local/horizon/etc/horizon.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ export HISTORY_ARCHIVE_URLS="__ARCHIVE__"
1515
export ADMIN_PORT=6060
1616
export PORT=8001
1717
export CHECKPOINT_FREQUENCY=8
18+
export INGEST_DISABLE_STATE_VERIFICATION=True

start

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,6 @@ EOF
531531

532532
run_silent "chown-horizon" chown -R stellar:stellar .
533533

534-
if [[ "$NETWORK" = "local" || (".$PROTOCOL_VERSION" != ".none" && $PROTOCOL_VERSION -gt 19) ]] ; then
535-
cat << EOF >> etc/horizon.env
536-
export INGEST_DISABLE_STATE_VERIFICATION=True
537-
EOF
538-
fi
539-
540534
start_postgres
541535
run_silent "init-horizon-db" sudo -u stellar ./bin/horizon db init
542536
touch .quickstart-initialized

0 commit comments

Comments
 (0)