-
Notifications
You must be signed in to change notification settings - Fork 76
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
soroban-rpc: add a flag to launch core with diagnostic events #474
Comments
From stellar/rs-soroban-env#713 I don't think Core needs to be started up in a special way to enable Diagnostic Evets. @tsachiherman what makes you think that? |
Given that debug events are unmetered, I think that they have to be disabled by default. Otherwise, everyone would be using these instead of regular events, right ? |
I am not sure, but I haven’t seen any flags in core. @sisuresh can you confirm? |
Core will have a config setting to enable debug events. The core commit linked in stellar/rs-soroban-env#713 is just incomplete. |
Ah, ok, thanks @sisuresh . Then, this ticket will entail. Either: A:
B:
|
Given that the soroban-rpc needs to know this option is enabled in order to process the requests, I think that option A is the better one. It also "hides" the core implementation details, which is great. |
soroban-rpc already needs to supply a captive-core configuration file (and so does Horizon) |
To enable diagnostic events, core needs to be launched with this in the config file: |
Soroban-rpc actually always needs to use the txmeta to auto-detect whether diagnostic events are enabled. The precedent from horizon is that the toml file overrides cli flags (and that we prefer users using the toml file, to prevent flag-explosion). So the toml file might enable/disable diagnostic events either way. Fortunately, it's easy to auto-detect (as soon as we have ingested events), because if diagnostic events are enabled, the |
Yes, I'm saying option b, for now. But nothing to do with #507 (for now)
|
Fixed in stellar/quickstart#435 |
Got an error
I built Is this option currently available only for the captive core? And if yes, could you please fix this? |
Did you compile soroban-core with soroban support ?
There is a configure flag that makes that happen.
…On Mon, Aug 14, 2023, 11:06 PM OrbitLens ***@***.***> wrote:
Got an error
[default FATAL] Got an exception: Failed to parse './futurenet.cfg' :Unknown configuration entry: 'ENABLE_SOROBAN_DIAGNOSTIC_EVENTS'
I built stellar-core from sources (soroban-preview-10-July16
<https://github.com/stellar/stellar-core/tree/branch-soroban-preview-10-July16>
branch) and it returns me this error whenever I'm trying to launch
stellar-core to join futurenet.
Is this option currently available only for the captive core? And if yes,
could you please fix this?
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF2OOH4N36RDD7Z6GQWCRTLXVLRSJANCNFSM6AAAAAAVRI4NZY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No, I didn't. Thought that the branch with the name @tsachiherman Could you please point me in the right direction? How can I set this flag? #bash
./autogen.sh
./configure
make -j 4 |
I was always compiling core with the following: make clean && ./autogen.sh && ./configure --disable-tests --enable-next-protocol-version-unsafe-for-production && make -j8 |
@tsachiherman thanks for the info. It works. |
What
soroban-rpc: add a flag to launch core with debug events
Add an integration test to cover launching core with new flag
Epic
#471
The text was updated successfully, but these errors were encountered: