The API calls PendingNonceAt when sending a registration transaction. If there's two calls very close to each other, PendingNonceAt will return the same value, so both transactions will have the same nonce.
To fix this, we should have a transaction sender component that keeps track of used nonces internally and does not assign the same nonce twice. It should also watch transactions and return the receipt to the caller. If transactions get stuck, it should resend them with current gas prices.
The API calls
PendingNonceAtwhen sending a registration transaction. If there's two calls very close to each other,PendingNonceAtwill return the same value, so both transactions will have the same nonce.To fix this, we should have a transaction sender component that keeps track of used nonces internally and does not assign the same nonce twice. It should also watch transactions and return the receipt to the caller. If transactions get stuck, it should resend them with current gas prices.