-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingest/ledgerbackend: Add parameter to enforce diagnostic events in c…
…aptive core backend The configuration parameter (`EnforceSorobanDiagnosticEvents`)is optional and makes sure `ENABLE_SOROBAN_DIAGNOSTIC_EVENTS` is set to true for captive core unless the user explicitly sets `ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=false` in the appendix file. This fixes stellar/stellar-cli#806 (when `EnforceSorobanDiagnosticEvents` is set to true)
- Loading branch information
Showing
6 changed files
with
107 additions
and
16 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
ingest/ledgerbackend/testdata/appendix-disable-diagnostic-events.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=false |
15 changes: 15 additions & 0 deletions
15
ingest/ledgerbackend/testdata/expected-offline-enforce-diagnostic-events.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Generated file, do not edit | ||
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS = true | ||
FAILURE_SAFETY = 0 | ||
HTTP_PORT = 0 | ||
LOG_FILE_PATH = "" | ||
NETWORK_PASSPHRASE = "Public Global Stellar Network ; September 2015" | ||
RUN_STANDALONE = true | ||
UNSAFE_QUORUM = true | ||
|
||
[HISTORY.h0] | ||
get = "curl -sf http://localhost:1170/{0} -o {1}" | ||
|
||
[QUORUM_SET] | ||
THRESHOLD_PERCENT = 100 | ||
VALIDATORS = ["GCZBOIAY4HLKAJVNJORXZOZRAY2BJDBZHKPBHZCRAIUR5IHC2UHBGCQR"] |
14 changes: 14 additions & 0 deletions
14
ingest/ledgerbackend/testdata/expected-offline-enforce-disabled-diagnostic-events.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated file, do not edit | ||
FAILURE_SAFETY = 0 | ||
HTTP_PORT = 0 | ||
LOG_FILE_PATH = "" | ||
NETWORK_PASSPHRASE = "Public Global Stellar Network ; September 2015" | ||
RUN_STANDALONE = true | ||
UNSAFE_QUORUM = true | ||
|
||
[HISTORY.h0] | ||
get = "curl -sf http://localhost:1170/{0} -o {1}" | ||
|
||
[QUORUM_SET] | ||
THRESHOLD_PERCENT = 100 | ||
VALIDATORS = ["GCZBOIAY4HLKAJVNJORXZOZRAY2BJDBZHKPBHZCRAIUR5IHC2UHBGCQR"] |
20 changes: 20 additions & 0 deletions
20
ingest/ledgerbackend/testdata/expected-online-with-no-http-port-diag-events.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated file, do not edit | ||
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS = true | ||
FAILURE_SAFETY = -1 | ||
HTTP_PORT = 11626 | ||
LOG_FILE_PATH = "" | ||
NETWORK_PASSPHRASE = "Public Global Stellar Network ; September 2015" | ||
PEER_PORT = 12345 | ||
|
||
[[HOME_DOMAINS]] | ||
HOME_DOMAIN = "testnet.stellar.org" | ||
QUALITY = "MEDIUM" | ||
|
||
[[VALIDATORS]] | ||
ADDRESS = "localhost:123" | ||
HOME_DOMAIN = "testnet.stellar.org" | ||
NAME = "sdf_testnet_1" | ||
PUBLIC_KEY = "GDKXE2OZMJIPOSLNA6N6F2BVCI3O777I2OOC4BV7VOYUEHYX7RTRYA7Y" | ||
|
||
[HISTORY.h0] | ||
get = "curl -sf http://localhost:1170/{0} -o {1}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters