Coder Social home page Coder Social logo

Comments (7)

xfyfb avatar xfyfb commented on May 19, 2024

During wallet recovery, client will try to sync with validator for the latest sequence number. As the client/wallet generates address deterministically, if the same mnemonic file is used, the account might already exists on chain. In this case, cli/wallet will need the latest sequence number to submit transaction. 429 is from rate limit and is supposed to be transient, and it should work with retry.

from diem.

xfyfb avatar xfyfb commented on May 19, 2024

Oh, I saw you set the child number to 500. It will recover 500 accounts and issue 500 rpc calls to validator, which is over the limit. Please try with a small number first and we will fix it with a more flexible solution.

from diem.

kf106 avatar kf106 commented on May 19, 2024

Glad you noticed that. A suggestion: the sequence number sync should only occur when a transaction that relies on a valid sequence number is issued. So on generating e.g. 500 addresses, they could all start with sequence number -1, and then when an address is queried for balance or a transaction is issued, first submit a sync rpc.

from diem.

icarter09 avatar icarter09 commented on May 19, 2024

@kf106 are you still experiencing this issue?

from diem.

xfyfb avatar xfyfb commented on May 19, 2024

@kf106, the changes already merged. Can you run again and verify?

from diem.

kf106 avatar kf106 commented on May 19, 2024

On it now.

from diem.

kf106 avatar kf106 commented on May 19, 2024

Verified as improved.

from diem.

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.