Skip to content

Commit

Permalink
Add integration tests for asset balance expiration / restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Nov 20, 2023
1 parent 11e5322 commit e2154f9
Show file tree
Hide file tree
Showing 14 changed files with 606 additions and 153 deletions.
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
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

0 comments on commit e2154f9

Please sign in to comment.