3

As I understand the view functions does not require gas. So isn't it possible to spam the network and to overload the nodes with spamming view functions to all the nodes ?

3
  • You can’t spam the network , u can spam one node that because calling a view functions is not sending a transaction and is not propagated to other nodes
    – Majd TL
    Commented Dec 9, 2021 at 21:57
  • if I can spam 1 node so I can spam all the nodes. Isnt this risk to the eth nodes ?
    – user87577
    Commented Dec 10, 2021 at 0:00
  • I'm not sure :) not an expert in Ethereum clients but not all nodes are public , not all public nodes support such requests :)
    – Majd TL
    Commented Dec 10, 2021 at 11:06

1 Answer 1

2

When using view functions, you load only the node you are accessing. Moreover, it can even be off-line. Other nodes of the network are not affected. The only exception is when the attacked node is generating in a private network with a PoA consensus - then it is possible to slow down the generation of new blocks in the network.

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.