Constellation-Labs / constellation

:milky_way::satellite: Decentralized Application Integration Platform
Apache License 2.0
153 stars 40 forks source link

Implement sending proposals through discovered proxy peers when sending directly fails for unknown reason #1488

Closed TheMMaciek closed 3 years ago

TheMMaciek commented 3 years ago

When fork happened a node A couldn't send a proposal to a node B that it had in it's peers list, because that node B didn't have node A in it's peers list. That caused the node A to retry sending proposal infinitely without success. For such cases when we get a general request failure error when sending a proposal to a peer, discovering a possible proxy peer (with a help of peers list every node send along with a proposal) and retrying sending through that proxy peer should be a viable solution.