Recently I cancelled a pending transaction by resending an other transaction with the same nounce and a higher gas price in order to have the new transaction mined faster. This was useful in my case.

However is it not possible to spam the network by doing this ? What happens if I send thousands of transactions with the same nounce at the same time ? Will they stay in the queue until at least one is being mined ?

  • 1
    Presumably (not on a full computer to look at source code) the mining node software will process transactions in descending order (roughly) of gas price. Thus, you might be able to spam a less-intelligent node and eat up its RAM. A smarter node probably prunes the duplicate with lower gas price. You can always spam the network with garbage transactions that consume CPU cycles and bandwidth and don't cost any ether.
    – lungj
    Commented Sep 10, 2017 at 23:23

1 Answer 1


It depends on the node you are connecting to but most of them replace the transaction that has the same nonce and address

In parity, for example here In mantis, here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.