-
Notifications
You must be signed in to change notification settings - Fork 25
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
[FEAT] - Only enable ledger events if asked to #1389
Comments
Do you have an example where we use them for tracing? (The
There is some discussion on this in this thread on Slack. In particular, @lehins said there that laziness means that we currently don't pay any additional cost (though this ticket still makes sense):
|
I don't have an example, and indeed I was confused by the InspectLedger stuff. Good catch. I'm however reading the thread and also this open PR #402 and I wonder if we would like to take this approach further:
That way we could disable events and if they are enabled we could connect a handler to be used by consumers (node?) |
I did some work on #1390, still as a WIP |
Describe the feature you'd like
At the moment we enable ledger events unconditionally (search for
EPReturn
). We then seem to only use them for tracing or testing.It probably would make sense to make this dependent on some configuration flag so that ledger operations would be even cheaper.
The text was updated successfully, but these errors were encountered: