`Filecoin.NetBandwidthStats` return real metrics

Open
#7,504 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
rust

Research direction

Start at the Filecoin.NetBandwidthStats entry point and investigate whether libp2p or rust-libp2p exposes usable peer bandwidth metrics. Confirm that the selected measurements reflect reality, while preserving the existing stub behavior needed by widgets.

Written by the indexing model from the issue text.

Description

Type: Task

Summary

Right now we only have a stub for Filecoin.NetBandwidthStats that returns all zeroes. The stub needs to be there, though, otherwise some widget fail completely (even if they don't use the data...).

There are no ready interfaces for this through libp2p AFAIK so this might need a bigger change. Maybe there's already something in rust-libp2p, though, not sure. I recall one can enable all p2p metrics somehow, but that might be an overkill. To be measured.

Completion Criteria

  • add real metrics to NetBandwidthStats - measure they really reflect reality.

Additional Links & Resources

Dominant language
Rust
Stars
700
Forks
201
Avg merge
1d 17h
Merged PRs (30d)
65

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ChainSafe/forest

All issues in ChainSafe/forest

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.