-
Notifications
You must be signed in to change notification settings - Fork 681
transaction can't be replaced, mining has already started #2509
Comments
Can you provide reproduction steps? |
Actually, not really. I'm running a script of mine (written in Python, using web3py library) which is a simulation of something over and over again and in (roughly estimated) 1 of 250 executions I'm seeing this error. I have running two processes interacting with Ganache, in alternating roles, sending transactions to Ganache respectively the other process waiting to see that transaction. I'm running this kind of simulation within a minikube Kubernetes cluster, with each Pod having its own two client processes and Ganache instance. What can I provide to help to locate this issue? |
This issue happens when Ganache receives a transaction with a nonce that matches the nonce of a transaction that is already in the process of being mined. If you aren't filling in the nonce yourself, and you are letting Ganache generate it, then this could be due to this issue: #2489. If you are filling in the nonce yourself then the bug is likely on your end, if you aren't, then it would seem that this is a Ganache bug. |
I did some digging and found the following: I'm filling nonce myself and transaction is sent in a retry loop using |
Before running the retry can you try checking if the transaction is in the transaction pool by calling the RPC method |
Similar to this:
|
Another one:
|
Are these two transactions the transactions that are being retried? |
Yep. These two have not been "mined" or "sealed" after 60 seconds (despite having These logs are written before the retry was sent. This is 60 seconds after submitting it the first time. |
Can you also output |
Which block identifier should I use? |
|
Ok, I updated the code (sorry, this takes a while and then I have to run it again until the error occurs again). The result from |
Hm, I was hoping it would be as simple as the |
Sorry for the delay, but for now, with these options, it looks like the error is not showing up... will try again... |
It must be the Possibly related: #2489 |
Any update on this? |
@teknoxic I have a PR that I should be able to pick back up before too long, #3498. I think this PR will likely fix the issue. If you are able to provide specific reproduction steps, I can confirm that this PR will fix it. I don't have a specific timeline currently, but I am aware that this is a problem and will try to get it done ASAP. |
@teknoxic you might be able to work around this for now by setting |
Hi,
ganache (v7.0.3) is telling me to open an issue here:
Any idea?
Best regards
Matthias
The text was updated successfully, but these errors were encountered: