-
Notifications
You must be signed in to change notification settings - Fork 681
Ganache mines two different transactions with the same "from" and "nonce" #3794
Comments
Thanks @olehmisar for raising this issue! @MicaiahReid and myself have looked into the problem, and have identified that the issue is only reproducible when Ganache is running in the same node process as the caller (in this case Ethers). We were unable to reproduce the issue with:
See PR #3498 that addresses similar transaction pool race conditions. Here is a reproduction, against a locally running Ganache instance (with deterministic flag -
|
Looks like it is a duplicate of #2489. Let's keep this one open as well since it has good repro steps. |
@davidmurdoch I think it's a slightly different issue. #2489 is when Ganache is generating the nonce for the user. This one is when the user is specifying the same nonce for two transactions and Ganache doesn't reject it. Regardless, I think the new queue we've implemented in #3498 will resolve this. |
Reproduction. You need to fork repl (top right corner) to see the console.
Ethereum does not allow two different transactions with the same from and nonce. But ganache does. In the repro, we can verify that it indeed confirmed those two transactions because the balance of the destination address is
3
(1 + 2
).I want simulate transaction replacement behaviour locally but I can't because of this bug.
The text was updated successfully, but these errors were encountered: