3

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
    Sep 10, 2017 at 23:23

1 Answer 1

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 that you have read and understand our privacy policy and code of conduct.

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