alloy icon indicating copy to clipboard operation
alloy copied to clipboard

[Bug] Provider keeps spamming node after TX confirmed

Open jgalat opened this issue 5 months ago • 6 comments

Component

provider, pubsub

What version of Alloy are you on?

0.3.6

Operating System

Linux

Describe the bug

I noticed my RPC provider getting spammed with eth_blockNumber and eth_getBlockByNumber calls after sending a tx. In my use case I am not even watching pending transactions, but still it starts to spam and doesn't stop unless I restart all over.

Here is a quick reproduction video and a repository. The repo uses 0.3.6, but I tested also with 0.2.1 and 0.1.4 and all behave the same. In this scenario I am watching and confirming that the transaction went through.

https://github.com/jgalat/alloy-repro-0

https://github.com/user-attachments/assets/7ff3a259-b06a-4175-8e02-543c20abc9b2

jgalat avatar Sep 20 '24 15:09 jgalat