crynux-ai / crynux-node

Crynux Node for the Helium(He) Network
Apache License 2.0
105 stars 14 forks source link

QoS score to give better node a higher probability to be selected for tasks #80

Open lukewwww opened 5 months ago

lukewwww commented 5 months ago

If a node is slow on submitting results, due to for example poor network, all the tasks it executes will be slow.

The QoS based incentivization mechanism will reward faster nodes more, which in a long term encourages all nodes to improve their hardware & network. However, the mechanism has no impact on the network performance if the nodes are not upgrading.

To make short term improvements, a part of the QoS score (timeout period and submission speed) can be used to change the probability a node will be selected for tasks. Higher QoS score, higher probability.

This may affect the consensus protocol since the nodes are not randomly selected anymore. Just like the card grading, this can be illustrated as the network being divided into several smaller subnets. Each subnet has a portion of the nodes. It will be easier for the attackers to start multiple malicious nodes to perform attacks. There must be a method to adjust the required amount of staking dynamically based on the probabilities.

lukewwww commented 1 month ago

This one should be validated using the online data. @iwehf