threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
79 stars 12 forks source link

Handle phantom public-config change #2359

Closed muhamadazmy closed 3 weeks ago

muhamadazmy commented 3 weeks ago

Description

Sometimes nodes reboot randomly because they receive phantom public-config changes.

This was a code bug because we didn't handle ctx cancellation which caused the channel to receive a "zero" event which contains no data which causes the node to remove it's public config and then reboot

this happens only with nodes that have public config

Describe the changes introduced by this PR and what does it affect