You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a node is a storage node of any transaction of a chain, it is notified when a new transaction is created in this chain.
This notification aims to append the new transaction address in the DB, so the node always know the last address of a chain it is storing.
But for some reason, it way happen that a node do not receive some notification and when it will receive the next one, the DB will append the transaction address without the ones previously missed.
Describe the solution you'd like
When a node receive a last address notification (NotifyLastTransactionAddress message), the node should verify that it's last local address is the previous address of the new last address it receive.
If it is the case, append the address in DB, if not the node should request the missing address between it's last local address and the last it received, and append them in DB in chronological order.
Edit :
In the PR #671 a new message has been created to ask the missing addresses of a chain GetNextAddresses. This message can be reused. The integration is in the repair_worker file, but it may be moved in self_repair file to have a common function for repair_worker and notify_last_address
The text was updated successfully, but these errors were encountered:
Describe the problem you discovered
When a node is a storage node of any transaction of a chain, it is notified when a new transaction is created in this chain.
This notification aims to append the new transaction address in the DB, so the node always know the last address of a chain it is storing.
But for some reason, it way happen that a node do not receive some notification and when it will receive the next one, the DB will append the transaction address without the ones previously missed.
Describe the solution you'd like
When a node receive a last address notification (
NotifyLastTransactionAddress
message), the node should verify that it's last local address is the previous address of the new last address it receive.If it is the case, append the address in DB, if not the node should request the missing address between it's last local address and the last it received, and append them in DB in chronological order.
Edit :
In the PR #671 a new message has been created to ask the missing addresses of a chain
GetNextAddresses
. This message can be reused. The integration is in the repair_worker file, but it may be moved in self_repair file to have a common function for repair_worker and notify_last_addressThe text was updated successfully, but these errors were encountered: