allow/block list improvement: mns remove `.massa` if specified
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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