This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Description
The registrar uses a naive approach for getting the current nonce - which is just to call /v2/accounts
and get the current nonce. This does not reflect any tx's in the mempool. If the registrar makes a name_update
tx and then makes another one before the first was confirmed, the second tx will get rejected due to a conflicting nonce error.
This can be worked around with a longer "batch interval" configuration - but it's not ideal.
Two options to do a better job:
- Get all pending tx's for the registrar payer, and if there is a pending tx, use the highest nonce + 1
- Store tx nonce's in the database, and use the next highest one