Comments (3)
The issue is likely caused by the time difference between your check of the burn amount and the execution of your register extrinsic on-chain.
To prevent this, you should get the current block and burn amount, and either A) reduce your wallet balance to the burn cost and submit, (two wallets maybe)
or B) check the registration interval and craft an extrinsic that is only valid until the end of the current interval, making sure to know the burn cost in that same interval.
from bittensor.
The above is a modification of the code in burned_register_extrinsic() method in registration.py. There is absolutely minimal delay between getting the burn price and the registration itself.
More importantly, I'd understand it if that would occur between two intervals e.g. from 3.2 Tao to 6.4 Tao. The issue is, however, that the burn method is returning an incorrect amount for both the 6.4 interval and the 12.8 interval.
More context:
while True:
if not s.burned_register(w, 19, True, True, False):
print("Failed to register hotkey: ", h)
I hope I got my point across now.
from bittensor.
As mentioned in private, this is because of the time delay between the call to burn
and the extrinsic submission.
Closing the issue.
from bittensor.
Related Issues (20)
- Abstract level for `bittensor/commands/module:class`
- Fix existed `test_subtensor.py` of `merge-async` repo HOT 1
- Async fir for `test/unit_tests/extrinsics/[:-3]` HOT 1
- Async tests fix for `tests/integration_tests` and `tests/unit_tests` directories. HOT 1
- Merge `staging` into `merge-async` to take a up to date codebase HOT 1
- Why weight value must be int in hashing weights commit? HOT 2
- unclear UidVecContainInvalidOne error on setting root weights
- Fixes of async implemetations, tests, bugs
- Selecting subnet type from stao/dtao hybrid options
- Write DTAO/STAO doc, present info to team
- Create Async Release Candidate
- RTL Symbols Break Rich Tables
- Merge `staging` into `merge-async` HOT 1
- Fix e2e tests from PR #2084 HOT 2
- Set Subnet Specific Takes
- Migrate Delegate Info to onchain Indentities
- Coldkey Arbitration
- Unable to retrieve subnet hyperparameters
- Fix leaked semaphores for POW
- reduce size of repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bittensor.