massalabs / massalabs/DeWeb

allow/block list improvement: mns remove `.massa` if specified

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
TypeScript
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Context
ATM, the DeWeb server config file only handles addresses and MNS domains without the ".massa". We should improve this system to remove the ".massa" before storing in memory, if specified by users.

How to

In MNS pkg

  • Implement a function that:
    • takes a list of strings
    • returns a list of string
    • check every strings from the input and removes ".massa" suffix
    • returns the modified list
  • Implement tests to ensure this is working properly

In API config

  • Use this function in API config load
  • Test the changes

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start in pkg/mns/mns.go and review the linked API configuration loader in int/api/config/config.go. Add tests for the MNS list handling and the API config changes, covering addresses or domains with and without the .massa suffix. Done means configured values are stored without that suffix.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.