-
Notifications
You must be signed in to change notification settings - Fork 13
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
Gossip swallows unicast errors #1513
Comments
@OdedWx do you have a preference here? I'm in favor of a separate unicast API, but I could live with a list of errors as well. |
Do you guys think it would make sense to move to something more established, like libp2p? I am asking this because we will inevitably solve the same problems that authors of libp2p faced in the past, and IPFS uses it successfully in production. Do we really have to build our own network stack? Maybe we should research the alternatives. |
it's actually not a bad idea, instead of developing real p2p (relay) capabilities |
This error did come back to bite us in relation to #1526: the halving of the chunks never happened because we never returned an error that would trigger it. |
Relevant conversation: #1514 |
#1504 changed the behaviour of gossip multicast so it will attempt transmitting to the entire list instead of stopping on the first failure. As a side effect, the multicast call does not return an error even if some of the transmissions failed.
Since unicasts are implemented as a multicast to a list of length 1, the resulting behaviour hides unicast errors.
Some possible solutions are:
The text was updated successfully, but these errors were encountered: