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

services/horizon: Add integration tests for asset balance expiration / restoration #5120

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions services/horizon/docker/captive-core-integration-tests.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ UNSAFE_QUORUM=true
FAILURE_SAFETY=0

ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=true
# Lower the TTL of persistent ledger entries
# so that ledger entry extension/restoring becomes testeable
TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true

[[VALIDATORS]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARTIFICIALLY_ACCELERATE_TIME_FOR_TESTING=true
TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true
TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=true

[[VALIDATORS]]
NAME="local_core"
Expand Down
3 changes: 3 additions & 0 deletions services/horizon/docker/stellar-core-integration-tests.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ FAILURE_SAFETY=0

DATABASE="postgresql://user=postgres password=mysecretpassword host=core-postgres port=5641 dbname=stellar"

# Lower the TTL of persistent ledger entries
# so that ledger entry extension/restoring becomes testeable
TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true

[QUORUM_SET]
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func Flags() (*Config, support.ConfigOptions) {
ConfigKey: &config.IngestDisableStateVerification,
OptType: types.Bool,
FlagDefault: false,
Usage: "ingestion system runs a verification routing to compare state in local database with history buckets, this can be disabled however it's not recommended",
Usage: "disable periodic verification of ledger state in horizon db (not recommended)",
},
&support.ConfigOption{
Name: "ingest-state-verification-checkpoint-frequency",
Expand Down
Loading
Loading