Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wait for txs committed before read nonce to build next tx #3

Merged

Conversation

chaoticlonghair
Copy link
Contributor

@chaoticlonghair chaoticlonghair commented Nov 10, 2023

I don't sure whether it's a bug of Axon JSON-RPC or not.

If two transactions with a same sender are sent one by one, then they have a chance to use a same nonce.

So, this PR updates tests to make sure each transaction is constructed after the previous transaction mined.

The tests after this PR should be passed with axonweb3/axon#1526.

@chaoticlonghair chaoticlonghair force-pushed the bugfix/duplicated-nonces branch 2 times, most recently from ba33160 to a6a3511 Compare November 10, 2023 06:51
@chaoticlonghair chaoticlonghair force-pushed the bugfix/duplicated-nonces branch from a6a3511 to 07c2a2d Compare November 10, 2023 07:23
@chaoticlonghair chaoticlonghair marked this pull request as ready for review November 10, 2023 08:27
@sunchengzhu sunchengzhu merged commit be8b502 into axonweb3:master Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants