-
Notifications
You must be signed in to change notification settings - Fork 3
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
broadcasted
field of dropped
event of transactionsWatch
hard to enforce
#132
Comments
On that same note: what should be the expected behaviour if the server crashes before having emitted the validated/invalidated events? I mean, based on what we discussed in here, I think that the " |
In this case, I would opt for removing the My understanding from #107 (comment), is that the actual number of peers the transaction has been broadcasted doesn't necessarily represent different peers. And the purpose of this event is to check if the transaction could later be included in the chain by some other peers -- the tx has been broadcasted / left the node. If I got this right, we could then remove the The From my perspective, we could either simplify the Would love to hear your thoughts 🙏 |
I'd probably be for removing it altogether. The idea behind this field was simply to be displayed to users to show progress. |
Let's say that there is a load balancer, one of the load balanced servers is watching a transaction using
transactionsWatch_watch
, but this server crashes or goes down intentionally.When that happens, the load balancer will naturally send a
dropped
event to the client to notify it that the transaction isn't being watched anymore.However, the value that the load balancer should put in the
broadcasted
field of thatdropped
event is unclear. The load balancer can't know whether or not the server has broadcasted the transaction before going down. For this reason, it is forced to usetrue
no matter what.The text was updated successfully, but these errors were encountered: