aepp-sdk-js icon indicating copy to clipboard operation
aepp-sdk-js copied to clipboard

Implement local nonce management

Open nduchak opened this issue 6 years ago • 5 comments

nduchak avatar Mar 20 '19 11:03 nduchak

check in relation to the generalized accounts

noandrea avatar Apr 30 '19 10:04 noandrea

If an SDK instance keep track of an account nonce locally, then in a concurrent scenario, where multiple sdk instances build transactions for the same account, each SDK instance will have a nonce that is not align and very possibly wrong.

It is way better to shift the responsibility for nonce management to the entity that controls an account via the SDK

@mpowaga can you write a brief POC about how it could be done?

noandrea avatar Nov 19 '19 11:11 noandrea

consider implementing this algorithm: https://devchat.aeternity.com/group/aepp-sdk?msg=obZt9MS5QjZzzhPvN

davidyuk avatar Nov 20 '19 07:11 davidyuk

Can be fixed partially by using endpoint from here https://github.com/aeternity/aeternity/issues/3662

davidyuk avatar Jun 25 '21 08:06 davidyuk