filecoin-station / spark

💥 Storage Provider Retrieval Checker as a Filecoin Station Module 🛰️
https://filspark.com
Other
9 stars 2 forks source link

Limit rewards per IPv4 /24 subnet #29

Closed bajtos closed 1 year ago

bajtos commented 1 year ago

When calculating SPARK rewards, we can see many nodes completing the same task. To make sybil attacks more expensive, we should reward only one checker in each IPv4 /24 subnet.

### Tasks
- [x] Record "inet_group" in measurements
- [x] Evaluate inet_group field - reward one participant per group
- [x] Visualise measurements & evaluations in Grafana
bajtos commented 1 year ago

The grouping algorithm must allow us to identify participants from U.S- or E.U.- sanctioned countries to implement geofencing and ensure we don't pay them.

patrickwoodhead commented 1 year ago

Cloudflare using IPV6 which is slowing things down a bit.

bajtos commented 1 year ago

The grouping algorithm must allow us to identify participants from U.S- or E.U.- sanctioned countries to implement geofencing and ensure we don't pay them.

We decided to implement a different solution: we put Cloudflare's WAF (web application firewall) in front of SPARK API and configured it to reject requests coming from the sanctioned countries.

bajtos commented 1 year ago

Visualisations: