Skip to content

Commit

Permalink
Add load test which generates ledgers loaded with soroban Tx Meta
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Dec 20, 2024
1 parent 981158a commit e32727f
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ingest/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c Change) String() string {
)
}

func (c Change) ledgerKey() (xdr.LedgerKey, error) {
func (c Change) LedgerKey() (xdr.LedgerKey, error) {
if c.Pre != nil {
return c.Pre.LedgerKey()
}
Expand Down Expand Up @@ -182,7 +182,7 @@ type sortableChanges struct {
func newSortableChanges(changes []Change) sortableChanges {
ledgerKeys := make([][]byte, len(changes))
for i, c := range changes {
lk, err := c.ledgerKey()
lk, err := c.LedgerKey()
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions services/horizon/docker/captive-core-integration-tests.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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
# TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
# TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true

[[VALIDATORS]]
NAME="local_core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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
#TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
#TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true

[[VALIDATORS]]
NAME="local_core"
Expand Down
4 changes: 2 additions & 2 deletions services/horizon/docker/stellar-core-integration-tests.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ DATABASE="postgresql://user=postgres password=mysecretpassword host=core-postgre

# 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
# TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME=10
# TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE=true

[QUORUM_SET]
THRESHOLD_PERCENT=100
Expand Down
Loading

0 comments on commit e32727f

Please sign in to comment.