blockchain-insights / blockchain-data-subnet

Blockchain data insights
MIT License
13 stars 9 forks source link

[miner] specific validator blacklisting #37

Open aph5nt opened 6 months ago

aph5nt commented 6 months ago

Context: At the moment we have an implementation of global blacklisting: https://github.com/blockchain-insights/blockchain-data-subnet/blob/main/neurons/miners/blacklists.py https://github.com/blockchain-insights/blockchain-data-subnet/blob/main/neurons/miners/blacklist_registry.py https://github.com/blockchain-insights/blockchain-data-subnet/blob/main/neurons/miners/ip_blocker.py https://github.com/blockchain-insights/blockchain-data-subnet/blob/main/neurons/miners/miner.py#L191C10-L191C10

Problem: There are some unverified validators which are potentially ddosing all miners by doing unuseful request

Task: Implement solution for the miner for ip blocking The miner(person) should be able to manually add hotkeys to blacklist to a json file mapped into container

Scope:

dsavenkov1982 commented 6 months ago

Stage #1 done, PR created (https://github.com/blockchain-insights/blockchain-data-subnet/pull/38)

dsavenkov1982 commented 6 months ago

@aph5nt Please provide some more details re steps 2 and 4: 1) Where is the Docker file located? 2) Where is this docker-compose one? 3) Etc, etc.? 4) What is meant by 'ops repository manual update'? Where and what should be updated? Thanks.