threefoldtech / minting_v3

minting code for grid v3, using v3 tokenomics
Apache License 2.0
0 stars 0 forks source link

Nodes who's twin doesn't have a relay set should not get tokens #24

Closed LeeSmet closed 1 year ago

LeeSmet commented 1 year ago

Since having an empty relay value inherently means the node is not reachable, these nodes are functionally useless for the grid (they can't be used), and by extension should not get tokens. In theory no such node twins should exist, but it doesn't hurt to add the check. Also should check the impact of a potential missing/invalid key