Giter VIP home page Giter VIP logo

Comments (3)

camfairchild avatar camfairchild commented on July 18, 2024

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.

michaelkrasa avatar michaelkrasa commented on July 18, 2024

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.

camfairchild avatar camfairchild commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.