opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
852 stars 301 forks source link

Unable to register twice for same local subnet #1770

Open Rubenduburck opened 4 months ago

Rubenduburck commented 4 months ago

Describe the bug

Second registration to new subnet fails with SubstrateRequestException: {'code': 1010, 'message': 'Invalid Transaction', 'data': 'Transaction would exhaust the block limits'}

To Reproduce

  1. start localnet.sh
  2. register two wallets
  3. register new subnet
  4. register wallet 1 with subnet
  5. register wallet 2 with subnet step 5 causes SubstrateRequestException: {'code' 1010, 'message':'Invalid Transaction', 'data': 'Transaction would exhaust the block limits'}

Expected behavior

Registration as normal (works on branch main)

Screenshots

No response

Environment

Ubuntu 20.04, development branch

Additional context

I have a Dockerfile that builds this repo from git, then deploys some wallets and registers a subnet, a miner and a validator. On more recent versions of this repo, this pipeline breaks at the validator registration step with the above mentioned error.

Tested also on two different machines.

mjurbanski-reef commented 2 months ago

Seems you need to adjust hyperparameters to be able to register in short succession https://github.com/opentensor/bittensor/pull/1943/files/0115dfe1b32d5d98465a2f1aff882590357a9e70#r1615953975