-
Notifications
You must be signed in to change notification settings - Fork 97
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
return an error if transaction history futures initialization fails #1986
Comments
This isn't a problem though since tx history is an auxiliary feature, we don't wanna disable the coin just because one of its streamers died? no? |
We should return an error when the core/main logic fails in the background thread (e.g., see how it's done in the event streaming implementations) instead of saying "coin is activated successfully". |
Yeah we might return an error via the activation request as there is no channel to display this error to the user from. But i didn't get whether we are for deactivating the coin or not (which i think we shouldn't). But also returning a plain error while keeping the coin active won't make any sense for whose requesting. In the light of #2172, coin activations has nothing to do with initializing event streamer. One would need to send a new request for initializing the streamer after having activated the coin. |
If we are spawning a task along with some request, we should make sure the spawned task will get into the right context/state before saying "all is good" instead of ignoring the spawned task status and returning success result immediately. This is the whole idea.
I think this is unrelated with tx history implementations? |
we agree on that. i am talking about solutions thought. the plausible one on my mind right now is to activate the coin normally but also report on errors that occurred by trailing an
tx history is an event streamer. |
Returning errors in successful requests makes things more complicated than it should. We shouldn't be overengineering this to be honest. Just return the error when there is one and that's it. What are the concerns you have on this?
With that PR I guess? Yeah, I am not really sure what is what after the changes that PR brings.. |
As explained by @onur-ozkan
ref. #1978 (comment), #1978 (comment), #1978 (comment)
The text was updated successfully, but these errors were encountered: