-
Notifications
You must be signed in to change notification settings - Fork 24
Welcome node receive wrong notification from validation nodes #1665
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
Comments
Okay, let's break down this issue and outline a solution based on the analysis of the codebase structure. Problem Recap: The core issue is that the Welcome Node ( Analysis & Relevant Components:
Proposed Solution: Coordinator-Centric Status Reporting The most robust way to handle this is to make the Coordinator node within the Here's how it would work:
Benefits:
Implementation Steps (Conceptual):
This approach directly addresses the discrepancy by ensuring the final status reported reflects the consensus of the validation group, not the potentially erroneous state of an isolated participant. It should apply correctly whether the transaction was submitted directly or forwarded. (Analyse made with gemini-2.5-pro-exp-03-25) |
This seems interesting, however, there is some centralization point in the coordinator to determine the validity or the timeout decision of the transaction. I think @Neylix intention was a bit more decentralized because it's up to the welcome to decide if the tx should be timed-out. |
Hi @samuelmanzanera ,
Otherwise if changing coordinator sync responsabilities is not desired, i can propose an implementation of the original solution proposed by @Neylix . Workflow summary :
Note : Im using this issue to experimentally check the archethic-node context awareness of Gemini thanks to the knowledges i feed him with, in an attempt to integrate AI workflow in the resolution of archethic-node github issues. If you considere this experiment not welcome or ineffective, let me know and i will not go further. |
Describe the problem you discovered
In certain edge cases, a validation node might become isolated (e.g., due to network issues) and fail to communicate with other validation nodes. If so, the isolated node may trigger a validation timeout due to missing updates from the coordinator or cross-validation nodes.
When the timeout occurs, the isolated node reports a transaction timeout to the Welcome Node, which notifies the client of a timeout error. However, if other validation nodes successfully process the transaction, the transaction may still be finalized on the network. This creates a discrepancy: the client receives a false timeout error despite the transaction ultimately succeeding.
Describe the solution you'd like
We should find a way to handle isolated node reporting wrong error to the welcome node.
A possible solution could be the following:
When the welcome node send the transaction to validation nodes, it count the number of positive response from them and if it receive validation error the welcome node should wait to have at least 2 errors if more than one validation nodes responded positively.
We should also handle this behavior when a transaction is forwarded by the welcome node
Epic
No response
The text was updated successfully, but these errors were encountered: