archethic-foundation / archethic-foundation/archethic-node
NetworkView hash does not represent transaction view
- Lenguaje dominante
- Elixir
- Estrellas
- 82
- Forks
- 24
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Describe the problem you discovered
NetworkView is a hash of different data (mainly network chains last transaction address) aiming to ensure validation nodes have the same network view of the network chains.
But this hash is updated directly when a network transaction is replicated while the data represented by the transaction may be applicable in future.
For example the node shared secret transaction will update the network view hash directly but the application of this transaction is delayed to a specific date (00:00 for instance).
So it is possible that a welcome node get the network view hash just before replicating the node shared secret transaction and send the Start Mining message to validation nodes. The validation nodes receive the message after replicating the node shared secret transaction and so the hash will be different. Therefore the validation nodes will not start the validation and the welcome node will forward the transaction.
But in fact this node shared secret transaction would not affect the transaction and so the validation nodes could have validated the transaction.
This example does not cause any problem, but if part of the validation nodes start the validation and other does not it could create issue when the welcome node forward the transaction.
### Describe the solution you'd like
The network view hash should be computed based on the transaction validation time and get the same information as the validation nodes will do.
The network hash could even hash not the transaction addresses but directly the information them self. (To analyze)
### Epic
_No response_
Guía de contribución
Línea de trabajo
Empieza por localizar el cálculo del hash de NetworkView y el tratamiento de los tiempos de validación de las transacciones, y luego compara ambos con la información utilizada por los nodos de validación. Se considera terminado cuando las transacciones retrasadas no alteran el hash antes de su tiempo de validación y los nodos calculan vistas de red coincidentes; la alternativa de aplicar hash directamente a los datos de las transacciones todavía requiere análisis.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- elixir
- Área
- blockchain, distributed-systems
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100