opentensor / bittensor-subnet-template

Template Design for a Bittensor subnetwork
MIT License
62 stars 105 forks source link

Can't mint tokens from faucet locally #39

Open toilaluan opened 8 months ago

toilaluan commented 8 months ago

I am encountering issues while attempting to set up the subnet template locally, as outlined in your documentation (https://github.com/opentensor/bittensor-subnet-template/blob/main/docs/running_on_staging.md). I have run into a couple of challenges that I'd like to bring to your attention for guidance or resolution.

  1. Non-existent Branch for User-Creation: In the documentation, step 4 instructs to switch to the 'user-creation' branch under the subnets section. However, I've observed that this branch does not exist in the repository. This has led me to bypass step 4 entirely, but I am unsure if this impacts the subsequent steps or the overall setup.

  2. Faucet Token Minting Error: Following the steps and proceeding to step 9, which involves minting tokens from the faucet, I encountered an error. The specific error message is as follows: Failed: Error: {'type': 'Module', 'name': 'FaucetDisabled', 'docs': []}. This error suggests an issue with the faucet module, perhaps indicating that it is disabled or not functioning as expected.

dnstufff commented 8 months ago

Same here

toilaluan commented 8 months ago

@ermenkov i resolved the FaucetDisabled exception by changing cargo build --release to cargo build --release --features pow-faucet in scripts/localrun.sh but then i encounter another issue when create new subnet: image

dnstufff commented 8 months ago

Again same here. It appears that this flag is too low: https://github.com/opentensor/subtensor/blob/f7b34e3ac8a3dec52b3c2213cd001f81f449f19b/pallets/subtensor/src/utils.rs#L1033

This MD might help with the flags: https://github.com/opentensor/substrate-docs/blob/9d9e2421b7498e5de89cb6df300f20c634687a29/content/md/en/docs/reference/command-line-tools/node-template.md

Haven't solved it yet either. Anyone else?

toilaluan commented 8 months ago

@ermenkov i resolved, just comment all rate limit exceptions in source code. it's ok for me cus i just want to run locally

362024758 commented 8 months ago

@toilaluan I want to run locally, but I also encountered the same error. May I ask which source code you annotated

urkh commented 5 months ago

@362024758

Are you running subtensor with docker?

If I do from the build, it doesn't happen to me, but running the docker image it does.

YmClash commented 2 months ago

same problem