Erigon version:Base on v2.60.0-RC2
I'm encountering an issue when trying to send a transaction using Erigon where I receive the following error:INTERNAL_ERROR: could not replace existing tx. This happens when attempting to send a new transaction with the same nonce as an existing one.
Steps to Reproduce:
Send a transaction using the following command (details are obfuscated for privacy):
cast send -f 0x2206812B69662f454C5218E4BaC20E439e15c4c5 --private-key 0xxxxxxxx --value 0.01ether 0xA6f7A6b2E9B4d41C582D4Aaf907F45321e2Ca847 --legacy --rpc-url http://erigon-rpc.vali-global.svc.test.local:8545
The command returns the following error:
Error: server returned an error response: error code -32000: RPC error response: INTERNAL_ERROR: could not replace existing tx
Expected Behavior:
The new transaction with the same nonce should either replace the existing transaction if it has a higher gas price or be accepted if the previous one is not in the pool anymore.
Actual Behavior:
The transaction is rejected with the error code -32000: INTERNAL_ERROR: could not replace existing tx, indicating that the transaction cannot be replaced.
OS: Alibaba Cloud Linux 3 (Soaring Falcon), VERSION_ID=3, UPDATE_ID=9.1
Additional Information:
I have tried the following to resolve the issue:
Used the cast nonce command to verify the correct nonce for the address, which confirmed the correct nonce.
Increased the gas price to a higher value to incentivize miners, but the issue persisted.
Attempted to replace the transaction with a 0 value transaction to cancel it, but still faced the same error.
Any guidance or insights into why the transaction cannot be replaced would be greatly appreciated. Is there any specific configuration or limitation in Erigon that could be causing this behavior?
Erigon version:Base on v2.60.0-RC2 I'm encountering an issue when trying to send a transaction using Erigon where I receive the following error:
INTERNAL_ERROR: could not replace existing tx
. This happens when attempting to send a new transaction with the same nonce as an existing one.Steps to Reproduce:
cast send -f 0x2206812B69662f454C5218E4BaC20E439e15c4c5 --private-key 0xxxxxxxx --value 0.01ether 0xA6f7A6b2E9B4d41C582D4Aaf907F45321e2Ca847 --legacy --rpc-url http://erigon-rpc.vali-global.svc.test.local:8545
Error: server returned an error response: error code -32000: RPC error response: INTERNAL_ERROR: could not replace existing tx
Expected Behavior:
The new transaction with the same nonce should either replace the existing transaction if it has a higher gas price or be accepted if the previous one is not in the pool anymore.
Actual Behavior:
The transaction is rejected with the error code
-32000: INTERNAL_ERROR: could not replace existing tx
, indicating that the transaction cannot be replaced.Environment:
RPC URL: http://erigon-rpc.vali-global.svc.test.local:8545
Cast version: cast 0.2.0 (995fd9e 2024-11-26T00:22:03.572961224Z)
OS: Alibaba Cloud Linux 3 (Soaring Falcon), VERSION_ID=3, UPDATE_ID=9.1
Additional Information:
I have tried the following to resolve the issue:
Used the
cast nonce
command to verify the correct nonce for the address, which confirmed the correct nonce.Increased the gas price to a higher value to incentivize miners, but the issue persisted.
Attempted to replace the transaction with a 0 value transaction to cancel it, but still faced the same error.
Any guidance or insights into why the transaction cannot be replaced would be greatly appreciated. Is there any specific configuration or limitation in Erigon that could be causing this behavior?